Shortcut crash fix
Title was empty which caused launcher to crash. If title is empty the shortcut is invalid so we want to remove it. Fix: 300213039 Flag: no flag Test: no test Change-Id: Ifa12877b9ac1d8bc266b74a95b6975b7f1bcf31e
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user