fix upstream NPE crash in UserAspectRatioDetails.launchApplication()
This commit is contained in:
@@ -159,9 +159,9 @@ public class UserAspectRatioDetails extends AppInfoBase implements
|
||||
}
|
||||
|
||||
private void launchApplication() {
|
||||
Intent launchIntent = mPm.getLaunchIntentForPackage(mPackageName)
|
||||
.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP);
|
||||
Intent launchIntent = mPm.getLaunchIntentForPackage(mPackageName);
|
||||
if (launchIntent != null) {
|
||||
launchIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP);
|
||||
getContext().startActivityAsUser(launchIntent, new UserHandle(mUserId));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user