OSDN Git Service

Fix talkback speak wrong item
authorRaff Tsai <rafftsai@google.com>
Wed, 27 Nov 2019 08:54:09 +0000 (16:54 +0800)
committerRaff Tsai <rafftsai@google.com>
Wed, 27 Nov 2019 08:55:22 +0000 (16:55 +0800)
Fixes: 145251855
Test: manual
Change-Id: I041d9fd6416e5ae5a12ea51fd8b70ca2f233f480

res/xml/location_recent_requests_see_all.xml
src/com/android/settings/location/RecentLocationRequestSeeAllPreferenceController.java

index 492bc96..5bfb0ac 100644 (file)
@@ -14,9 +14,7 @@
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:settings="http://schemas.android.com/apk/res-auto"
     android:title="@string/location_category_recent_location_requests"
-    android:key="recent_location_requests_see_all">
-    <PreferenceCategory
-        android:key="all_recent_location_requests"
-        settings:controller="com.android.settings.location.RecentLocationRequestSeeAllPreferenceController"/>
+    android:key="all_recent_location_requests"
+    settings:controller="com.android.settings.location.RecentLocationRequestSeeAllPreferenceController">
 
 </PreferenceScreen>
index 012cb8b..4ed9d13 100644 (file)
@@ -19,7 +19,6 @@ import android.content.Context;
 
 import androidx.annotation.VisibleForTesting;
 import androidx.preference.Preference;
-import androidx.preference.PreferenceCategory;
 import androidx.preference.PreferenceScreen;
 
 import com.android.settings.R;
@@ -32,7 +31,7 @@ import java.util.List;
 public class RecentLocationRequestSeeAllPreferenceController
         extends LocationBasePreferenceController {
 
-    private PreferenceCategory mCategoryAllRecentLocationRequests;
+    private PreferenceScreen mCategoryAllRecentLocationRequests;
     private RecentLocationApps mRecentLocationApps;
     private boolean mShowSystem = false;
     private Preference mPreference;