Merge "Fix convert to fbe"

This commit is contained in:
TreeHugger Robot
2017-03-15 15:52:02 +00:00
committed by Android (Google) Code Review

View File

@@ -40,6 +40,7 @@ public class ConfirmConvertToFbe extends SettingsPreferenceFragment {
public void onClick(View v) { public void onClick(View v) {
Intent intent = new Intent(Intent.ACTION_FACTORY_RESET); Intent intent = new Intent(Intent.ACTION_FACTORY_RESET);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
intent.setPackage("android");
intent.putExtra(Intent.EXTRA_REASON, "convert_fbe"); intent.putExtra(Intent.EXTRA_REASON, "convert_fbe");
getActivity().sendBroadcast(intent); getActivity().sendBroadcast(intent);
} }