use of com.android.settings.datetime.AutoTimeZonePreferenceController in project platform_packages_apps_Settings by BlissRoms.
the class DateTimeSettings method getPreferenceControllers.
@Override
protected List<AbstractPreferenceController> getPreferenceControllers(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);
controllers.add(autoTimeZonePreferenceController);
controllers.add(autoTimePreferenceController);
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;
}
use of com.android.settings.datetime.AutoTimeZonePreferenceController 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;
}
Aggregations