增加flag

main
Matthew 5 days ago
parent c65ffab9dd
commit bbcd2691ed

@ -883,6 +883,7 @@ public class MpMasterService extends Service {
relaunchIntent.putExtra("pkname", MicroPhotoContext.PACKAGE_NAME_MPMASTER); relaunchIntent.putExtra("pkname", MicroPhotoContext.PACKAGE_NAME_MPMASTER);
relaunchIntent.setAction("com.xy.xsetting.action"); relaunchIntent.setAction("com.xy.xsetting.action");
relaunchIntent.setPackage("com.android.systemui"); relaunchIntent.setPackage("com.android.systemui");
relaunchIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
// getApplicationContext().sendBroadcast(restartIntent); // getApplicationContext().sendBroadcast(restartIntent);
long launchTs = System.currentTimeMillis() + (mHeartbeatDuration + 120) * 1000; long launchTs = System.currentTimeMillis() + (mHeartbeatDuration + 120) * 1000;

Loading…
Cancel
Save