Fix bugs in auto restriction.
1. Dismiss this tip once user clicks it and goes to detail page. 2. In auto restriction, since apps are automatically restricted, we need to remove apps in list that unrestricted by user. 3. Refactor the code to remove the unnecessary parameter(i.e. SettingsActivity) Bug: 78187414 Test: RunSettingsRoboTests Change-Id: I1c950f7c55df35795641c2ea8579ce9e011dba28
This commit is contained in:
@@ -67,12 +67,12 @@ public class RestrictedAppDetails extends DashboardFragment {
|
||||
private final FooterPreferenceMixin mFooterPreferenceMixin =
|
||||
new FooterPreferenceMixin(this, getLifecycle());
|
||||
|
||||
public static void startRestrictedAppDetails(SettingsActivity caller,
|
||||
InstrumentedPreferenceFragment fragment, List<AppInfo> appInfos) {
|
||||
public static void startRestrictedAppDetails(InstrumentedPreferenceFragment fragment,
|
||||
List<AppInfo> appInfos) {
|
||||
final Bundle args = new Bundle();
|
||||
args.putParcelableList(EXTRA_APP_INFO_LIST, appInfos);
|
||||
|
||||
new SubSettingLauncher(caller)
|
||||
new SubSettingLauncher(fragment.getContext())
|
||||
.setDestination(RestrictedAppDetails.class.getName())
|
||||
.setArguments(args)
|
||||
.setTitle(R.string.restricted_app_title)
|
||||
|
Reference in New Issue
Block a user