Search in sources :

Example 1 with AutoTimeFormatPreferenceController

use of com.android.settings.datetime.AutoTimeFormatPreferenceController in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class DateTimeSettings method createPreferenceControllers.

@Override
protected List<AbstractPreferenceController> createPreferenceControllers(Context context) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    final Activity activity = getActivity();
    final Intent intent = activity.getIntent();
    final boolean isFromSUW = intent.getBooleanExtra(EXTRA_IS_FROM_SUW, false);
    final AutoTimeZonePreferenceController autoTimeZonePreferenceController = new AutoTimeZonePreferenceController(activity, this, /* UpdateTimeAndDateCallback */
    isFromSUW);
    final AutoTimePreferenceController autoTimePreferenceController = new AutoTimePreferenceController(activity, this);
    final AutoTimeFormatPreferenceController autoTimeFormatPreferenceController = new AutoTimeFormatPreferenceController(activity, this);
    controllers.add(autoTimeZonePreferenceController);
    controllers.add(autoTimePreferenceController);
    controllers.add(autoTimeFormatPreferenceController);
    controllers.add(new TimeFormatPreferenceController(activity, this, /* UpdateTimeAndDateCallback */
    isFromSUW));
    controllers.add(new TimeZonePreferenceController(activity, autoTimeZonePreferenceController));
    controllers.add(new TimePreferenceController(activity, this, /* UpdateTimeAndDateCallback */
    autoTimePreferenceController));
    controllers.add(new DatePreferenceController(activity, this, /* UpdateTimeAndDateCallback */
    autoTimePreferenceController));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) TimePreferenceController(com.android.settings.datetime.TimePreferenceController) AutoTimePreferenceController(com.android.settings.datetime.AutoTimePreferenceController) DatePreferenceController(com.android.settings.datetime.DatePreferenceController) ArrayList(java.util.ArrayList) Activity(android.app.Activity) AutoTimeFormatPreferenceController(com.android.settings.datetime.AutoTimeFormatPreferenceController) Intent(android.content.Intent) AutoTimeZonePreferenceController(com.android.settings.datetime.AutoTimeZonePreferenceController) TimeZonePreferenceController(com.android.settings.datetime.TimeZonePreferenceController) AutoTimeZonePreferenceController(com.android.settings.datetime.AutoTimeZonePreferenceController) AutoTimeFormatPreferenceController(com.android.settings.datetime.AutoTimeFormatPreferenceController) TimeFormatPreferenceController(com.android.settings.datetime.TimeFormatPreferenceController) AutoTimePreferenceController(com.android.settings.datetime.AutoTimePreferenceController)

Aggregations

Activity (android.app.Activity)1 Intent (android.content.Intent)1 AutoTimeFormatPreferenceController (com.android.settings.datetime.AutoTimeFormatPreferenceController)1 AutoTimePreferenceController (com.android.settings.datetime.AutoTimePreferenceController)1 AutoTimeZonePreferenceController (com.android.settings.datetime.AutoTimeZonePreferenceController)1 DatePreferenceController (com.android.settings.datetime.DatePreferenceController)1 TimeFormatPreferenceController (com.android.settings.datetime.TimeFormatPreferenceController)1 TimePreferenceController (com.android.settings.datetime.TimePreferenceController)1 TimeZonePreferenceController (com.android.settings.datetime.TimeZonePreferenceController)1 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)1 ArrayList (java.util.ArrayList)1