Add option to reset network settings to factory

bug:16161518
Change-Id: I7c0cc58d5385352c6c9af2b27af23a744b5df977
This commit is contained in:
Stuart Scott
2014-07-24 19:22:06 -07:00
parent 792343b2f5
commit be90341c80
9 changed files with 576 additions and 85 deletions

View File

@@ -77,9 +77,8 @@ public class MasterClear extends Fragment {
*/
private boolean runKeyguardConfirmation(int request) {
Resources res = getActivity().getResources();
return new ChooseLockSettingsHelper(getActivity(), this)
.launchConfirmationActivity(request, null,
res.getText(R.string.master_clear_gesture_explanation));
return new ChooseLockSettingsHelper(getActivity(), this).launchConfirmationActivity(request,
null, res.getText(R.string.master_clear_gesture_explanation));
}
@Override
@@ -100,11 +99,10 @@ public class MasterClear extends Fragment {
}
private void showFinalConfirmation() {
Preference preference = new Preference(getActivity());
preference.setFragment(MasterClearConfirm.class.getName());
preference.setTitle(R.string.master_clear_confirm_title);
preference.getExtras().putBoolean(ERASE_EXTERNAL_EXTRA, mExternalStorage.isChecked());
((SettingsActivity) getActivity()).onPreferenceStartFragment(null, preference);
Bundle args = new Bundle();
args.putBoolean(ERASE_EXTERNAL_EXTRA, mExternalStorage.isChecked());
((SettingsActivity) getActivity()).startPreferencePanel(MasterClearConfirm.class.getName(),
args, R.string.master_clear_confirm_title, null, null, 0);
}
/**