Remove tabs from recent location access page

Bug: 185382276
Test: manual - screenshot/Az2obQLjdy7vVv9
Change-Id: Ic2f3004d57108e136c622290e8d78bf284a09258
This commit is contained in:
Lifu Tang
2021-11-12 12:35:14 -08:00
parent 8f8e00a7b7
commit df1b7c6979
4 changed files with 2 additions and 66 deletions

View File

@@ -40,7 +40,6 @@ public class RecentLocationAccessSeeAllPreferenceController
private final RecentAppOpsAccess mRecentLocationAccesses;
private boolean mShowSystem = false;
private Preference mPreference;
private int mType = ProfileSelectFragment.ProfileType.ALL;
public RecentLocationAccessSeeAllPreferenceController(Context context, String key) {
super(context, key);
@@ -68,7 +67,8 @@ public class RecentLocationAccessSeeAllPreferenceController
final List<RecentAppOpsAccess.Access> recentLocationAccesses = new ArrayList<>();
for (RecentAppOpsAccess.Access access : mRecentLocationAccesses.getAppListSorted(
mShowSystem)) {
if (isRequestMatchesProfileType(userManager, access, mType)) {
if (isRequestMatchesProfileType(
userManager, access, ProfileSelectFragment.ProfileType.ALL)) {
recentLocationAccesses.add(access);
}
}
@@ -89,15 +89,6 @@ public class RecentLocationAccessSeeAllPreferenceController
}
}
/**
* Initialize {@link ProfileSelectFragment.ProfileType} of the controller
*
* @param type {@link ProfileSelectFragment.ProfileType} of the controller.
*/
public void setProfileType(@ProfileSelectFragment.ProfileType int type) {
mType = type;
}
/**
* Set the value of {@link #mShowSystem}.
*/