Merge "Fix settings crash when interact uninstalled app"

This commit is contained in:
João Victor Mendes Freire
2022-11-14 16:31:35 +00:00
committed by Android (Google) Code Review
3 changed files with 98 additions and 3 deletions

View File

@@ -215,9 +215,11 @@ public class AppInfoDashboardFragment extends DashboardFragment
alarmsAndReminders.setPackageName(packageName);
alarmsAndReminders.setParentFragment(this);
use(AdvancedAppInfoPreferenceCategoryController.class).setChildren(Arrays.asList(
writeSystemSettings, drawOverlay, pip, externalSource, acrossProfiles,
alarmsAndReminders));
final AdvancedAppInfoPreferenceCategoryController advancedAppInfo =
use(AdvancedAppInfoPreferenceCategoryController.class);
advancedAppInfo.setChildren(Arrays.asList(writeSystemSettings, drawOverlay, pip,
externalSource, acrossProfiles, alarmsAndReminders));
advancedAppInfo.setAppEntry(mAppEntry);
final AppLocalePreferenceController appLocale =
use(AppLocalePreferenceController.class);