AI 143867: am: CL 143865 am: CL 143864 Fix SDK example to correctly pass back newly-configured appWidgetId.
Original author: jsharkey Merged from: //branches/cupcake/... Original author: android-build Merged from: //branches/donutburger/... Automated import of CL 143867
This commit is contained in:
committed by
The Android Open Source Project
parent
a3a8aeb15c
commit
ba5dfbf9f4
@@ -89,7 +89,10 @@ public class ExampleAppWidgetConfigure extends Activity {
|
||||
saveTitlePref(ExampleAppWidgetConfigure.this, mAppWidgetId,
|
||||
mAppWidgetPrefix.getText().toString());
|
||||
|
||||
setResult(RESULT_OK);
|
||||
// Make sure we pass back the original appWidgetId
|
||||
Intent resultValue = new Intent();
|
||||
resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId);
|
||||
setResult(RESULT_OK, resultValue);
|
||||
finish();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user