Fixing typo from previous CL

Bug 17969770

Change-Id: I4ea04864000d2ed8368ca81ba8cff42b4208d13d
This commit is contained in:
Adam Cohen 2014-10-14 15:04:34 -07:00
parent eb1ac42fd4
commit d61a638e99
1 changed files with 1 additions and 0 deletions

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