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

This commit is contained in:
Beverly Tai
2021-03-30 17:26:44 +00:00
committed by Android (Google) Code Review

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;
}