Merge "Fixing typo from previous CL" into ub-now-porkchop

This commit is contained in:
Adam Cohen
2014-10-14 22:09:00 +00:00
committed by Android (Google) Code Review

View File

@@ -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);