Replace deprecated ACTION_MASTER_CLEAR by ACTION_FACTORY_RESET.
Both do the same, ACTION_FACTORY_RESET is the new name. Test: manual - reset the device BUG: 33656232 Change-Id: I30cedea600bfcbeffa5d1094a6e0e83326f7ccfc
This commit is contained in:
@@ -38,7 +38,7 @@ public class ConfirmConvertToFbe extends SettingsPreferenceFragment {
|
||||
final Button button = (Button) rootView.findViewById(R.id.button_confirm_convert_fbe);
|
||||
button.setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(Intent.ACTION_MASTER_CLEAR);
|
||||
Intent intent = new Intent(Intent.ACTION_FACTORY_RESET);
|
||||
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
|
||||
intent.putExtra(Intent.EXTRA_REASON, "convert_fbe");
|
||||
getActivity().sendBroadcast(intent);
|
||||
|
Reference in New Issue
Block a user