Эх сурвалжийг харах

android: Allow controller to focus on toolbar menu items

Workaround for this
https://issuetracker.google.com/issues/256948272
t895 2 жил өмнө
parent
commit
ee540c712c

+ 3 - 1
src/android/app/src/main/res/layout-w600dp/fragment_about.xml

@@ -11,12 +11,14 @@
         android:id="@+id/appbar_about"
         android:id="@+id/appbar_about"
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
-        android:fitsSystemWindows="true">
+        android:fitsSystemWindows="true"
+        android:touchscreenBlocksFocus="false">
 
 
         <com.google.android.material.appbar.MaterialToolbar
         <com.google.android.material.appbar.MaterialToolbar
             android:id="@+id/toolbar_about"
             android:id="@+id/toolbar_about"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="?attr/actionBarSize"
             android:layout_height="?attr/actionBarSize"
+            android:touchscreenBlocksFocus="false"
             app:navigationIcon="@drawable/ic_back"
             app:navigationIcon="@drawable/ic_back"
             app:title="@string/about" />
             app:title="@string/about" />
 
 

+ 3 - 1
src/android/app/src/main/res/layout/fragment_about.xml

@@ -11,12 +11,14 @@
         android:id="@+id/appbar_about"
         android:id="@+id/appbar_about"
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
-        android:fitsSystemWindows="true">
+        android:fitsSystemWindows="true"
+        android:touchscreenBlocksFocus="false">
 
 
         <com.google.android.material.appbar.MaterialToolbar
         <com.google.android.material.appbar.MaterialToolbar
             android:id="@+id/toolbar_about"
             android:id="@+id/toolbar_about"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="?attr/actionBarSize"
             android:layout_height="?attr/actionBarSize"
+            android:touchscreenBlocksFocus="false"
             app:title="@string/about"
             app:title="@string/about"
             app:navigationIcon="@drawable/ic_back" />
             app:navigationIcon="@drawable/ic_back" />
 
 

+ 2 - 0
src/android/app/src/main/res/layout/fragment_addons.xml

@@ -11,6 +11,7 @@
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
         android:fitsSystemWindows="true"
         android:fitsSystemWindows="true"
+        android:touchscreenBlocksFocus="false"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toTopOf="parent">
         app:layout_constraintTop_toTopOf="parent">
@@ -19,6 +20,7 @@
             android:id="@+id/toolbar_addons"
             android:id="@+id/toolbar_addons"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="?attr/actionBarSize"
             android:layout_height="?attr/actionBarSize"
+            android:touchscreenBlocksFocus="false"
             app:navigationIcon="@drawable/ic_back" />
             app:navigationIcon="@drawable/ic_back" />
 
 
     </com.google.android.material.appbar.AppBarLayout>
     </com.google.android.material.appbar.AppBarLayout>

+ 3 - 1
src/android/app/src/main/res/layout/fragment_applet_launcher.xml

@@ -10,12 +10,14 @@
         android:id="@+id/appbar_applets"
         android:id="@+id/appbar_applets"
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
-        android:fitsSystemWindows="true">
+        android:fitsSystemWindows="true"
+        android:touchscreenBlocksFocus="false">
 
 
         <com.google.android.material.appbar.MaterialToolbar
         <com.google.android.material.appbar.MaterialToolbar
             android:id="@+id/toolbar_applets"
             android:id="@+id/toolbar_applets"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="?attr/actionBarSize"
             android:layout_height="?attr/actionBarSize"
+            android:touchscreenBlocksFocus="false"
             app:navigationIcon="@drawable/ic_back"
             app:navigationIcon="@drawable/ic_back"
             app:title="@string/applets" />
             app:title="@string/applets" />
 
 

+ 2 - 0
src/android/app/src/main/res/layout/fragment_driver_manager.xml

@@ -15,12 +15,14 @@
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
             android:fitsSystemWindows="true"
             android:fitsSystemWindows="true"
+            android:touchscreenBlocksFocus="false"
             app:liftOnScrollTargetViewId="@id/list_drivers">
             app:liftOnScrollTargetViewId="@id/list_drivers">
 
 
             <com.google.android.material.appbar.MaterialToolbar
             <com.google.android.material.appbar.MaterialToolbar
                 android:id="@+id/toolbar_drivers"
                 android:id="@+id/toolbar_drivers"
                 android:layout_width="match_parent"
                 android:layout_width="match_parent"
                 android:layout_height="?attr/actionBarSize"
                 android:layout_height="?attr/actionBarSize"
+                android:touchscreenBlocksFocus="false"
                 app:navigationIcon="@drawable/ic_back"
                 app:navigationIcon="@drawable/ic_back"
                 app:title="@string/gpu_driver_manager" />
                 app:title="@string/gpu_driver_manager" />
 
 

+ 3 - 1
src/android/app/src/main/res/layout/fragment_early_access.xml

@@ -11,12 +11,14 @@
         android:id="@+id/appbar_ea"
         android:id="@+id/appbar_ea"
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
-        android:fitsSystemWindows="true">
+        android:fitsSystemWindows="true"
+        android:touchscreenBlocksFocus="false">
 
 
         <com.google.android.material.appbar.MaterialToolbar
         <com.google.android.material.appbar.MaterialToolbar
             android:id="@+id/toolbar_about"
             android:id="@+id/toolbar_about"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="?attr/actionBarSize"
             android:layout_height="?attr/actionBarSize"
+            android:touchscreenBlocksFocus="false"
             app:navigationIcon="@drawable/ic_back"
             app:navigationIcon="@drawable/ic_back"
             app:title="@string/early_access" />
             app:title="@string/early_access" />
 
 

+ 2 - 0
src/android/app/src/main/res/layout/fragment_folders.xml

@@ -15,12 +15,14 @@
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
             android:fitsSystemWindows="true"
             android:fitsSystemWindows="true"
+            android:touchscreenBlocksFocus="false"
             app:liftOnScrollTargetViewId="@id/list_folders">
             app:liftOnScrollTargetViewId="@id/list_folders">
 
 
             <com.google.android.material.appbar.MaterialToolbar
             <com.google.android.material.appbar.MaterialToolbar
                 android:id="@+id/toolbar_folders"
                 android:id="@+id/toolbar_folders"
                 android:layout_width="match_parent"
                 android:layout_width="match_parent"
                 android:layout_height="?attr/actionBarSize"
                 android:layout_height="?attr/actionBarSize"
+                android:touchscreenBlocksFocus="false"
                 app:navigationIcon="@drawable/ic_back"
                 app:navigationIcon="@drawable/ic_back"
                 app:title="@string/game_folders" />
                 app:title="@string/game_folders" />
 
 

+ 2 - 0
src/android/app/src/main/res/layout/fragment_game_info.xml

@@ -11,12 +11,14 @@
         android:id="@+id/appbar_info"
         android:id="@+id/appbar_info"
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
+        android:touchscreenBlocksFocus="false"
         android:fitsSystemWindows="true">
         android:fitsSystemWindows="true">
 
 
         <com.google.android.material.appbar.MaterialToolbar
         <com.google.android.material.appbar.MaterialToolbar
             android:id="@+id/toolbar_info"
             android:id="@+id/toolbar_info"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="?attr/actionBarSize"
             android:layout_height="?attr/actionBarSize"
+            android:touchscreenBlocksFocus="false"
             app:navigationIcon="@drawable/ic_back" />
             app:navigationIcon="@drawable/ic_back" />
 
 
     </com.google.android.material.appbar.AppBarLayout>
     </com.google.android.material.appbar.AppBarLayout>

+ 3 - 1
src/android/app/src/main/res/layout/fragment_installables.xml

@@ -10,12 +10,14 @@
         android:id="@+id/appbar_installables"
         android:id="@+id/appbar_installables"
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
-        android:fitsSystemWindows="true">
+        android:fitsSystemWindows="true"
+        android:touchscreenBlocksFocus="false">
 
 
         <com.google.android.material.appbar.MaterialToolbar
         <com.google.android.material.appbar.MaterialToolbar
             android:id="@+id/toolbar_installables"
             android:id="@+id/toolbar_installables"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="?attr/actionBarSize"
             android:layout_height="?attr/actionBarSize"
+            android:touchscreenBlocksFocus="false"
             app:title="@string/manage_yuzu_data"
             app:title="@string/manage_yuzu_data"
             app:navigationIcon="@drawable/ic_back" />
             app:navigationIcon="@drawable/ic_back" />
 
 

+ 3 - 1
src/android/app/src/main/res/layout/fragment_licenses.xml

@@ -10,12 +10,14 @@
         android:id="@+id/appbar_licenses"
         android:id="@+id/appbar_licenses"
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
-        android:fitsSystemWindows="true">
+        android:fitsSystemWindows="true"
+        android:touchscreenBlocksFocus="false">
 
 
         <com.google.android.material.appbar.MaterialToolbar
         <com.google.android.material.appbar.MaterialToolbar
             android:id="@+id/toolbar_licenses"
             android:id="@+id/toolbar_licenses"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="?attr/actionBarSize"
             android:layout_height="?attr/actionBarSize"
+            android:touchscreenBlocksFocus="false"
             app:title="@string/licenses"
             app:title="@string/licenses"
             app:navigationIcon="@drawable/ic_back" />
             app:navigationIcon="@drawable/ic_back" />
 
 

+ 2 - 0
src/android/app/src/main/res/layout/fragment_settings.xml

@@ -11,6 +11,7 @@
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
         android:fitsSystemWindows="true"
         android:fitsSystemWindows="true"
+        android:touchscreenBlocksFocus="false"
         app:elevation="0dp">
         app:elevation="0dp">
 
 
         <com.google.android.material.appbar.CollapsingToolbarLayout
         <com.google.android.material.appbar.CollapsingToolbarLayout
@@ -24,6 +25,7 @@
                 android:id="@+id/toolbar_settings"
                 android:id="@+id/toolbar_settings"
                 android:layout_width="match_parent"
                 android:layout_width="match_parent"
                 android:layout_height="?attr/actionBarSize"
                 android:layout_height="?attr/actionBarSize"
+                android:touchscreenBlocksFocus="false"
                 app:layout_collapseMode="pin"
                 app:layout_collapseMode="pin"
                 app:navigationIcon="@drawable/ic_back" />
                 app:navigationIcon="@drawable/ic_back" />