空指针保护

onereq
Matthew 2 months ago
parent 2d5cc27c0e
commit 48856f0c0b

@ -520,7 +520,9 @@ public class MicroPhotoService extends Service {
try {
Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(MicroPhotoContext.PACKAGE_NAME_MPMASTER);
// launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
if (launchIntent != null) {
context.startActivity(launchIntent);
}
} catch (Exception ex) {
ex.printStackTrace();
}

Loading…
Cancel
Save