use of com.android.settings.SettingsActivity in project android_packages_apps_Settings by SudaMod.
the class InstalledAppDetails method startAppInfoFragment.
public static void startAppInfoFragment(Class<?> fragment, CharSequence title, SettingsPreferenceFragment caller, AppEntry appEntry) {
// start new fragment to display extended information
Bundle args = new Bundle();
args.putString(ARG_PACKAGE_NAME, appEntry.info.packageName);
args.putInt(ARG_PACKAGE_UID, appEntry.info.uid);
SettingsActivity sa = (SettingsActivity) caller.getActivity();
sa.startPreferencePanel(caller, fragment.getName(), args, -1, title, caller, SUB_INFO_FRAGMENT);
}
use of com.android.settings.SettingsActivity in project android_packages_apps_Settings by SudaMod.
the class AppOpsCategory method startApplicationDetailsActivity.
// utility method used to start sub activity
private void startApplicationDetailsActivity() {
// start new fragment to display extended information
Bundle args = new Bundle();
args.putString(AppOpsDetails.ARG_PACKAGE_NAME, mCurrentPkgName);
SettingsActivity sa = (SettingsActivity) getActivity();
sa.startPreferencePanel(this, AppOpsDetails.class.getName(), args, org.lineageos.platform.internal.R.string.privacy_guard_manager_title, null, this, RESULT_APP_DETAILS);
}
use of com.android.settings.SettingsActivity in project android_packages_apps_Settings by SudaMod.
the class AppOpsDetails method setIntentAndFinish.
private void setIntentAndFinish(boolean finish, boolean appChanged) {
Intent intent = new Intent();
intent.putExtra(ManageApplications.APP_CHG, appChanged);
SettingsActivity sa = (SettingsActivity) getActivity();
sa.finishPreferencePanel(this, Activity.RESULT_OK, intent);
}
use of com.android.settings.SettingsActivity in project android_packages_apps_Settings by SudaMod.
the class UserDictionaryAddWordFragment method onItemSelected.
@Override
public void onItemSelected(final AdapterView<?> parent, final View view, final int pos, final long id) {
final LocaleRenderer locale = (LocaleRenderer) parent.getItemAtPosition(pos);
if (locale.isMoreLanguages()) {
SettingsActivity sa = (SettingsActivity) getActivity();
sa.startPreferenceFragment(new UserDictionaryLocalePicker(this), true);
} else {
mContents.updateLocale(locale.getLocaleString());
}
}
use of com.android.settings.SettingsActivity in project android_packages_apps_Settings by SudaMod.
the class LocationSettings method onActivityCreated.
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
final SettingsActivity activity = (SettingsActivity) getActivity();
mUm = (UserManager) activity.getSystemService(Context.USER_SERVICE);
setHasOptionsMenu(true);
mSwitchBar = activity.getSwitchBar();
mSwitch = mSwitchBar.getSwitch();
mSwitchBar.show();
setHasOptionsMenu(true);
}
Aggregations