Create a new apps page for silky home
- Change recent apps to the list view. - Remove Conversations, Notifications and Permission manager. - Remove Wireless emergency alerts and Special app access. - Show App info preference if there's no recent apps. - Show general category with recent apps. - Use this page as the new apps entry on homepage for silky home. - Make old apps page unsearchable when silky home is enabled. - Exported new apps page in AndroidManifest. Bug: 168166015 Bug: 174964405 Test: robotest & visual Change-Id: I50d35a9d4723612214fce45a9e129fc175bc6831
This commit is contained in:
@@ -67,10 +67,6 @@ public class AppAndNotificationDashboardFragment extends DashboardFragment
|
||||
|
||||
@Override
|
||||
protected int getPreferenceScreenResId() {
|
||||
// TODO(b/168166015): Remove this when the new Apps page ready.
|
||||
if (FeatureFlagUtils.isEnabled(getContext(), FeatureFlags.SILKY_HOME)) {
|
||||
return R.xml.apps;
|
||||
}
|
||||
return R.xml.app_and_notification;
|
||||
}
|
||||
|
||||
@@ -142,5 +138,14 @@ public class AppAndNotificationDashboardFragment extends DashboardFragment
|
||||
Context context) {
|
||||
return buildPreferenceControllers(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isPageSearchEnabled(Context context) {
|
||||
// TODO(b/174964405): This method should be removed when silky home launched.
|
||||
// This page is going to deprecate, we should make this page unsearchable
|
||||
// when the silky home is enabled, otherwise search results will contain the
|
||||
// old data and launch this page even if the silky home is enabled.
|
||||
return !FeatureFlagUtils.isEnabled(context, FeatureFlags.SILKY_HOME);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user