Remove tabs from recent location access page
Bug: 185382276 Test: manual - screenshot/Az2obQLjdy7vVv9 Change-Id: Ic2f3004d57108e136c622290e8d78bf284a09258
This commit is contained in:
@@ -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}.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user