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();
}
Aggregations