空指针保护

nx2024
Matthew 2 months ago committed by XI.CHEN
parent f6e9269327
commit 8f8a3217e2

@ -442,7 +442,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