Merge "Don't show a toast icon if app.info is null" into sc-dev am: 42f5892237

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14018135

Change-Id: Ie4a983c007c44faa13dd83b2dafd8c5324a0c88b
This commit is contained in:
Beverly Tai
2021-03-30 17:43:02 +00:00
committed by Automerger Merge Worker

View File

@@ -233,7 +233,8 @@ public class SystemUIToast implements ToastPlugin.Toast {
return null;
}
final AppEntry appEntry = appState.getEntry(packageName, userId);
if (!ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER.filterApp(appEntry)) {
if (appEntry.info == null
|| !ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER.filterApp(appEntry)) {
return null;
}