Search in sources :

Example 1 with ZenServiceListing

use of com.android.settings.utils.ZenServiceListing in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class ZenModeAutomationSettings method onCreate.

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    addPreferencesFromResource(R.xml.zen_mode_automation_settings);
    mPm = mContext.getPackageManager();
    mServiceListing = new ZenServiceListing(mContext, CONFIG);
    mServiceListing.reloadApprovedServices();
}
Also used : ZenServiceListing(com.android.settings.utils.ZenServiceListing)

Example 2 with ZenServiceListing

use of com.android.settings.utils.ZenServiceListing in project android_packages_apps_Settings by crdroidandroid.

the class ZenModeSettings method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.zen_mode_settings);
    final PreferenceScreen root = getPreferenceScreen();
    mAutomaticRules = (PreferenceCategory) root.findPreference(KEY_AUTOMATIC_RULES);
    mPrioritySettings = root.findPreference(KEY_PRIORITY_SETTINGS);
    mVisualSettings = root.findPreference(KEY_VISUAL_SETTINGS);
    mPolicy = NotificationManager.from(mContext).getNotificationPolicy();
    mSummaryBuilder = new SummaryBuilder(getContext());
    mPm = mContext.getPackageManager();
    mServiceListing = new ZenServiceListing(mContext, CONFIG);
    mServiceListing.reloadApprovedServices();
}
Also used : PreferenceScreen(android.support.v7.preference.PreferenceScreen) ZenServiceListing(com.android.settings.utils.ZenServiceListing)

Example 3 with ZenServiceListing

use of com.android.settings.utils.ZenServiceListing in project android_packages_apps_Settings by SudaMod.

the class ZenModeSettings method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.zen_mode_settings);
    final PreferenceScreen root = getPreferenceScreen();
    mAutomaticRules = (PreferenceCategory) root.findPreference(KEY_AUTOMATIC_RULES);
    mPrioritySettings = root.findPreference(KEY_PRIORITY_SETTINGS);
    mVisualSettings = root.findPreference(KEY_VISUAL_SETTINGS);
    mPolicy = NotificationManager.from(mContext).getNotificationPolicy();
    mSummaryBuilder = new SummaryBuilder(getContext());
    mPm = mContext.getPackageManager();
    mServiceListing = new ZenServiceListing(mContext, CONFIG);
    mServiceListing.reloadApprovedServices();
}
Also used : PreferenceScreen(android.support.v7.preference.PreferenceScreen) ZenServiceListing(com.android.settings.utils.ZenServiceListing)

Example 4 with ZenServiceListing

use of com.android.settings.utils.ZenServiceListing in project android_packages_apps_Settings by DirtyUnicorns.

the class ZenModeSettings method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.zen_mode_settings);
    final PreferenceScreen root = getPreferenceScreen();
    mAutomaticRules = (PreferenceCategory) root.findPreference(KEY_AUTOMATIC_RULES);
    mPrioritySettings = root.findPreference(KEY_PRIORITY_SETTINGS);
    mVisualSettings = root.findPreference(KEY_VISUAL_SETTINGS);
    mPolicy = NotificationManager.from(mContext).getNotificationPolicy();
    mSummaryBuilder = new SummaryBuilder(getContext());
    mPm = mContext.getPackageManager();
    mServiceListing = new ZenServiceListing(mContext, CONFIG);
    mServiceListing.reloadApprovedServices();
}
Also used : PreferenceScreen(android.support.v7.preference.PreferenceScreen) ZenServiceListing(com.android.settings.utils.ZenServiceListing)

Example 5 with ZenServiceListing

use of com.android.settings.utils.ZenServiceListing in project platform_packages_apps_Settings by BlissRoms.

the class ZenModeSettings method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.zen_mode_settings);
    final PreferenceScreen root = getPreferenceScreen();
    mAutomaticRules = (PreferenceCategory) root.findPreference(KEY_AUTOMATIC_RULES);
    mPrioritySettings = root.findPreference(KEY_PRIORITY_SETTINGS);
    mVisualSettings = root.findPreference(KEY_VISUAL_SETTINGS);
    mPolicy = NotificationManager.from(mContext).getNotificationPolicy();
    mSummaryBuilder = new SummaryBuilder(getContext());
    mPm = mContext.getPackageManager();
    mServiceListing = new ZenServiceListing(mContext, CONFIG);
    mServiceListing.reloadApprovedServices();
}
Also used : PreferenceScreen(android.support.v7.preference.PreferenceScreen) ZenServiceListing(com.android.settings.utils.ZenServiceListing)

Aggregations

ZenServiceListing (com.android.settings.utils.ZenServiceListing)8 PreferenceScreen (android.support.v7.preference.PreferenceScreen)6