|
|
|
@ -418,19 +418,6 @@ public class MicroPhotoContext {
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
if (TextUtils.equals(packageName, PACKAGE_NAME_MPAPP)) {
|
|
|
|
|
|
|
|
|
|
Intent intent = new Intent(ACTION_RESTART_MP);
|
|
|
|
|
intent.putExtra("noDelay", 1);
|
|
|
|
|
if (!TextUtils.isEmpty(reason)) {
|
|
|
|
|
intent.putExtra("reason", reason);
|
|
|
|
|
}
|
|
|
|
|
intent.setPackage(PACKAGE_NAME_MPAPP);
|
|
|
|
|
|
|
|
|
|
context.sendBroadcast(intent);
|
|
|
|
|
} else {
|
|
|
|
|
SysApi.forceStopApp(context, packageName);
|
|
|
|
|
}
|
|
|
|
|
Intent intent = context.getPackageManager().getLaunchIntentForPackage(packageName);
|
|
|
|
|
if (intent != null) {
|
|
|
|
|
intent.putExtra("noDelay", 1);
|
|
|
|
|