summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-10-14 22:04:34 (GMT)
committerAdam Cohen <adamcohen@google.com>2014-10-14 22:06:54 (GMT)
commitd61a638e992ccdd2ea7fbc59dd2c5047c0e3051b (patch)
tree25687737263f9374aa64c55b1565ea5ba984c772
parenteb1ac42fd479cfd9b8e58220173c8bea5c69b649 (diff)
downloadandroid_packages_apps_Trebuchet-d61a638e992ccdd2ea7fbc59dd2c5047c0e3051b.zip
android_packages_apps_Trebuchet-d61a638e992ccdd2ea7fbc59dd2c5047c0e3051b.tar.gz
android_packages_apps_Trebuchet-d61a638e992ccdd2ea7fbc59dd2c5047c0e3051b.tar.bz2
Fixing typo from previous CL
Bug 17969770 Change-Id: I4ea04864000d2ed8368ca81ba8cff42b4208d13d
-rw-r--r--src/com/android/launcher3/LauncherProvider.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherProvider.java b/src/com/android/launcher3/LauncherProvider.java
index 670780a..6cc1688 100644
--- a/src/com/android/launcher3/LauncherProvider.java
+++ b/src/com/android/launcher3/LauncherProvider.java
@@ -1291,6 +1291,7 @@ public class LauncherProvider extends ContentProvider {
int appWidgetId = mAppWidgetHost.allocateAppWidgetId();
values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId);
if (!appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId,cn)) {
+ return false;
}
} catch (RuntimeException e) {
Log.e(TAG, "Failed to initialize external widget", e);