Fix appwidget bind dialog

Bug: 6926529
Change-Id: I19327a6346b6e7da61a49a983b3373058db21f12
This commit is contained in:
Michael Jurka
2012-08-02 18:36:42 -07:00
parent d7ae05dbdc
commit ca511a8115

View File

@@ -57,8 +57,8 @@ public class AllowBindAppWidgetActivity extends AlertActivity implements
try { try {
mAppWidgetManager.bindAppWidgetId(mAppWidgetId, mComponentName); mAppWidgetManager.bindAppWidgetId(mAppWidgetId, mComponentName);
Intent result = new Intent(); Intent result = new Intent();
result.putExtra("EXTRA_APPWIDGET_ID", mAppWidgetId); result.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId);
setResult(RESULT_OK); setResult(RESULT_OK, result);
} catch (Exception e) { } catch (Exception e) {
Log.v("BIND_APPWIDGET", "Error binding widget with id " Log.v("BIND_APPWIDGET", "Error binding widget with id "
+ mAppWidgetId + " and component " + mComponentName); + mAppWidgetId + " and component " + mComponentName);