Search in sources :

Example 1 with LocationSwitchBarController

use of com.android.settings.location.LocationSwitchBarController in project android_packages_apps_Settings by omnirom.

the class ProfileSelectLocationFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    final SettingsActivity activity = (SettingsActivity) getActivity();
    final SettingsMainSwitchBar switchBar = activity.getSwitchBar();
    switchBar.setTitle(getContext().getString(R.string.location_settings_primary_switch_title));
    final LocationSwitchBarController switchBarController = new LocationSwitchBarController(activity, switchBar, getSettingsLifecycle());
    switchBar.show();
}
Also used : LocationSwitchBarController(com.android.settings.location.LocationSwitchBarController) SettingsMainSwitchBar(com.android.settings.widget.SettingsMainSwitchBar) SettingsActivity(com.android.settings.SettingsActivity)

Aggregations

SettingsActivity (com.android.settings.SettingsActivity)1 LocationSwitchBarController (com.android.settings.location.LocationSwitchBarController)1 SettingsMainSwitchBar (com.android.settings.widget.SettingsMainSwitchBar)1