diff --git a/res/xml/location_recent_requests_see_all.xml b/res/xml/location_recent_requests_see_all.xml index 492bc968c59..5bfb0acbfe6 100644 --- a/res/xml/location_recent_requests_see_all.xml +++ b/res/xml/location_recent_requests_see_all.xml @@ -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"> - + android:key="all_recent_location_requests" + settings:controller="com.android.settings.location.RecentLocationRequestSeeAllPreferenceController"> diff --git a/src/com/android/settings/location/RecentLocationRequestSeeAllPreferenceController.java b/src/com/android/settings/location/RecentLocationRequestSeeAllPreferenceController.java index 012cb8bbe79..4ed9d13add2 100644 --- a/src/com/android/settings/location/RecentLocationRequestSeeAllPreferenceController.java +++ b/src/com/android/settings/location/RecentLocationRequestSeeAllPreferenceController.java @@ -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;