commit | 938a53d8640ddec14b36b1e7ddc3e156824d9de0 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Fri Sep 05 03:17:45 2014 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Fri Sep 05 03:40:07 2014 -0700 |
tree | 1648c36240e53e6309c8adcf7d00aaa9025205c7 | |
parent | 1c13ff569170bec075ab9961fbc0eb1ca395696b [diff] |
Don't remove content URI shortcuts during restore issue: 17373897 Change-Id: I2760f779d89be76cc1ace749b0c1893da80d07e1
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index b44433d..616e536 100644 --- a/src/com/android/launcher3/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java
@@ -2035,6 +2035,10 @@ 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,