From 938a53d8640ddec14b36b1e7ddc3e156824d9de0 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 5 Sep 2014 03:17:45 -0700 Subject: [PATCH] Don't remove content URI shortcuts during restore issue: 17373897 Change-Id: I2760f779d89be76cc1ace749b0c1893da80d07e1 --- src/com/android/launcher3/LauncherModel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index b44433d8d9..616e5366c4 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,