diff options
author | Federico Baron <fbaron@google.com> | 2023-09-21 19:25:25 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2023-09-21 19:25:25 +0000 |
commit | 9bbb0c75229cf6347d217e0820050b0e5154ce70 (patch) | |
tree | ce5f156e71dc0b31f0b2643d99a3a53f88e642f9 | |
parent | d295e3510a0eac0ee5ac74325bd4be3c7faf4872 (diff) | |
parent | d87178460cbe0573d1e51315cebc04eb3410fa1f (diff) | |
download | Launcher3-9bbb0c75229cf6347d217e0820050b0e5154ce70.tar.gz |
Merge "Shortcut crash fix" into udc-qpr-dev
-rw-r--r-- | src/com/android/launcher3/provider/LauncherDbUtils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/provider/LauncherDbUtils.java b/src/com/android/launcher3/provider/LauncherDbUtils.java index 1f908eb718..575551b9f2 100644 --- a/src/com/android/launcher3/provider/LauncherDbUtils.java +++ b/src/com/android/launcher3/provider/LauncherDbUtils.java @@ -120,6 +120,10 @@ public class LauncherDbUtils { deletedShortcuts.add(lc.id); continue; } + if (TextUtils.isEmpty(lc.getTitle())) { + deletedShortcuts.add(lc.id); + continue; + } // Make sure the target intent can be launched without any permissions. Otherwise remove // the shortcut |