|
|
@ -129,10 +129,22 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
startActivity(intent);
|
|
|
|
startActivity(intent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case R.id.action_reboot_mp:{
|
|
|
|
case R.id.action_notify_mp_reboot:{
|
|
|
|
MicroPhotoContext.restartMpApp(getApplicationContext(), "Manual Restart from MpMst");
|
|
|
|
MicroPhotoContext.restartMpApp(getApplicationContext(), "Manual Restart from MpMst");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case R.id.action_reboot_mp: {
|
|
|
|
|
|
|
|
Context context = getApplicationContext();
|
|
|
|
|
|
|
|
Intent intent = context.getPackageManager().getLaunchIntentForPackage(MicroPhotoContext.PACKAGE_NAME_MPAPP);
|
|
|
|
|
|
|
|
int noDelay = 1;
|
|
|
|
|
|
|
|
intent.putExtra("noDelay", noDelay);
|
|
|
|
|
|
|
|
intent.putExtra("reason", "Manual Restart from MpMst");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
|
|
|
|
|
|
|
context.startActivity(intent);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case R.id.action_reboot_mpmst:{
|
|
|
|
case R.id.action_reboot_mpmst:{
|
|
|
|
MpMasterService.restartApp(getApplicationContext());
|
|
|
|
MpMasterService.restartApp(getApplicationContext());
|
|
|
|
}
|
|
|
|
}
|
|
|
|