Fix sysui crashing on profile-only app open

Missing not installed flag.

Test: Launch app only installed on a profile
Change-Id: Ibbebe0cdeb71168aa7ce5c072eb2b3f4de8f9231
Fixes: 35618441
This commit is contained in:
Jason Monk
2017-02-21 13:45:36 -05:00
parent c98c16ded8
commit 4597600dec

View File

@@ -509,7 +509,8 @@ public class PhoneStatusBarPolicy implements Callback, Callbacks,
if (!hasNotif(notifs, pkg, info.userId)) {
// TODO: Optimize by not always needing to get application info.
// Maybe cache non-ephemeral packages?
ApplicationInfo appInfo = pm.getApplicationInfo(pkg, 0, info.userId);
ApplicationInfo appInfo = pm.getApplicationInfo(pkg,
PackageManager.MATCH_UNINSTALLED_PACKAGES, info.userId);
if (appInfo.isInstantApp()) {
postEphemeralNotif(pkg, info.userId, appInfo, noMan);
}