am c18e4a92: Merge "Fix bug where cancelling config activity leaves user stuck in bad state" into jb-ub-now-jetsonic

* commit 'c18e4a926530cf458bdc67abfdd60488ff62d758':
  Fix bug where cancelling config activity leaves user stuck in bad state
This commit is contained in:
Adam Cohen
2013-11-04 18:14:59 -08:00
committed by Android Git Automerger
+1 -1
View File
@@ -741,7 +741,7 @@ public class Launcher extends Activity
data.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1) : -1;
final int result;
final Runnable onComplete;
if (appWidgetId < 0) {
if (appWidgetId < 0 || resultCode == RESULT_CANCELED) {
Log.e(TAG, "Error: appWidgetId (EXTRA_APPWIDGET_ID) was not returned from the \\" +
"widget configuration activity.");
result = RESULT_CANCELED;