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() {
|
private void launchApplication() {
|
||||||
Intent launchIntent = mPm.getLaunchIntentForPackage(mPackageName)
|
Intent launchIntent = mPm.getLaunchIntentForPackage(mPackageName);
|
||||||
.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP);
|
|
||||||
if (launchIntent != null) {
|
if (launchIntent != null) {
|
||||||
|
launchIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP);
|
||||||
getContext().startActivityAsUser(launchIntent, new UserHandle(mUserId));
|
getContext().startActivityAsUser(launchIntent, new UserHandle(mUserId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user