Browse Source

Added dummy views to steal focus in main screen from the filter edit text. Hopefully fixes 285.

pull/311/head
Eric Kok 9 years ago
parent
commit
0fed95d803
  1. 7
      app/src/main/res/layout-w600dp/activity_torrents.xml
  2. 7
      app/src/main/res/layout-w900dp/activity_torrents.xml

7
app/src/main/res/layout-w600dp/activity_torrents.xml

@ -24,6 +24,13 @@
android:orientation="vertical" android:orientation="vertical"
tools:context=".core.gui.TorrentsActivity_"> tools:context=".core.gui.TorrentsActivity_">
<!-- Invisible view to steal focus from SearchView -->
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:focusable="true"
android:focusableInTouchMode="true"/>
<android.support.v7.widget.Toolbar <android.support.v7.widget.Toolbar
android:id="@+id/torrents_toolbar" android:id="@+id/torrents_toolbar"
style="@style/DefaultToolbar" style="@style/DefaultToolbar"

7
app/src/main/res/layout-w900dp/activity_torrents.xml

@ -23,6 +23,13 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".core.gui.TorrentsActivity_"> tools:context=".core.gui.TorrentsActivity_">
<!-- Invisible view to steal focus from SearchView -->
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:focusable="true"
android:focusableInTouchMode="true"/>
<android.support.v7.widget.Toolbar <android.support.v7.widget.Toolbar
android:id="@+id/selection_toolbar" android:id="@+id/selection_toolbar"
style="@style/DefaultToolbar" style="@style/DefaultToolbar"

Loading…
Cancel
Save