Search in sources :

Example 21 with NotificationBackend

use of com.android.settings.notification.NotificationBackend in project android_packages_apps_Settings by omnirom.

the class ZenModeBypassingAppsSettings method createPreferenceControllers.

@Override
protected List<AbstractPreferenceController> createPreferenceControllers(Context context) {
    final Activity activity = getActivity();
    final Application app;
    if (activity != null) {
        app = activity.getApplication();
    } else {
        app = null;
    }
    return buildPreferenceControllers(context, app, this, new NotificationBackend());
}
Also used : NotificationBackend(com.android.settings.notification.NotificationBackend) Activity(android.app.Activity) Application(android.app.Application)

Aggregations

NotificationBackend (com.android.settings.notification.NotificationBackend)21 Intent (android.content.Intent)10 Bundle (android.os.Bundle)10 HighPowerApplicationsActivity (com.android.settings.Settings.HighPowerApplicationsActivity)9 StorageUseActivity (com.android.settings.Settings.StorageUseActivity)9 WriteSettingsActivity (com.android.settings.Settings.WriteSettingsActivity)9 GamesStorageActivity (com.android.settings.Settings.GamesStorageActivity)8 AllApplicationsActivity (com.android.settings.Settings.AllApplicationsActivity)7 NotificationAppListActivity (com.android.settings.Settings.NotificationAppListActivity)6 Activity (android.app.Activity)4 Application (android.app.Application)2 IUsageStatsManager (android.app.usage.IUsageStatsManager)2 ApplicationInfo (android.content.pm.ApplicationInfo)2 UserManager (android.os.UserManager)2 Settings (com.android.settings.Settings)2 ManageExternalSourcesActivity (com.android.settings.Settings.ManageExternalSourcesActivity)2 OverlaySettingsActivity (com.android.settings.Settings.OverlaySettingsActivity)2 UsageAccessSettingsActivity (com.android.settings.Settings.UsageAccessSettingsActivity)2 SettingsActivity (com.android.settings.SettingsActivity)2 AppStorageSettings (com.android.settings.applications.AppStorageSettings)2