diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2014-09-05 03:17:45 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2014-09-05 03:40:07 -0700 |
commit | 938a53d8640ddec14b36b1e7ddc3e156824d9de0 (patch) | |
tree | 1648c36240e53e6309c8adcf7d00aaa9025205c7 | |
parent | 1c13ff569170bec075ab9961fbc0eb1ca395696b (diff) | |
download | android_packages_apps_Trebuchet-938a53d8640ddec14b36b1e7ddc3e156824d9de0.tar.gz android_packages_apps_Trebuchet-938a53d8640ddec14b36b1e7ddc3e156824d9de0.tar.bz2 android_packages_apps_Trebuchet-938a53d8640ddec14b36b1e7ddc3e156824d9de0.zip |
Don't remove content URI shortcuts during restore
issue: 17373897
Change-Id: I2760f779d89be76cc1ace749b0c1893da80d07e1
-rw-r--r-- | src/com/android/launcher3/LauncherModel.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index b44433d8d..616e5366c 100644 --- a/src/com/android/launcher3/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java @@ -2035,6 +2035,10 @@ public class LauncherModel extends BroadcastReceiver allowMissingTarget = true; // Add the icon on the workspace anyway. } + } else if (cn == null) { + // For shortcuts with no component, keep them as they are + restoredRows.add(id); + restored = false; } } catch (URISyntaxException e) { Launcher.addDumpLog(TAG, |