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:
Lenka Trochtova
2017-02-13 15:05:27 +01:00
parent ac3b32932a
commit 3393daccd9
3 changed files with 4 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ public class MasterClearConfirm extends OptionsMenuFragment {
};
private void doMasterClear() {
Intent intent = new Intent(Intent.ACTION_MASTER_CLEAR);
Intent intent = new Intent(Intent.ACTION_FACTORY_RESET);
intent.setPackage("android");
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
intent.putExtra(Intent.EXTRA_REASON, "MasterClearConfirm");