diff options
author | Amir Zaidi <azaidi@live.nl> | 2020-02-29 12:28:20 +0100 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | 61999285e9e15733eb0cd6f211e4132a27a96626 (patch) | |
tree | 14e4db43f6899faf56af51359c850bc8e5246616 | |
parent | 1f8fbc94b1f7a652b4ba8e8abc133253171530d7 (diff) |
Trebuchet: Do not attempt to show promise icon when info is null
Change-Id: I9b7a4f1923194657f7fd5b0ad75fc095a072086b
-rw-r--r-- | src/com/android/launcher3/InstallShortcutReceiver.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher3/InstallShortcutReceiver.java b/src/com/android/launcher3/InstallShortcutReceiver.java index 62c9b4dc9..06d9ef583 100644 --- a/src/com/android/launcher3/InstallShortcutReceiver.java +++ b/src/com/android/launcher3/InstallShortcutReceiver.java @@ -104,6 +104,7 @@ public class InstallShortcutReceiver extends BroadcastReceiver { @WorkerThread private static void addToQueue(Context context, PendingInstallShortcutInfo info) { + if (info == null) return; String encoded = info.encodeToString(); SharedPreferences prefs = Utilities.getPrefs(context); Set<String> strings = prefs.getStringSet(APPS_PENDING_INSTALL, null); |