summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2013-10-11 17:46:09 -0700
committerAdam Cohen <adamcohen@google.com>2013-10-11 17:46:39 -0700
commit0007472e20e02589a6305e1aeaa70770963ebec7 (patch)
treee3359df56be65367008fed0209949b4442d32a1f /src
parentf7d458543e64307b01de803d2ddfee2f21b0bd28 (diff)
downloadandroid_packages_apps_Trebuchet-0007472e20e02589a6305e1aeaa70770963ebec7.tar.gz
android_packages_apps_Trebuchet-0007472e20e02589a6305e1aeaa70770963ebec7.tar.bz2
android_packages_apps_Trebuchet-0007472e20e02589a6305e1aeaa70770963ebec7.zip
Fix issue with extra empty screen left over after widget add cancel (issue 10865959)
Change-Id: Iee72fe1b296e81a5f2d04f6edcbf9cac19aff992
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/Launcher.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 278b13c18..ee13f2946 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -736,6 +736,7 @@ public class Launcher extends Activity
Log.e(TAG, "Error: appWidgetId (EXTRA_APPWIDGET_ID) was not returned from the \\" +
"widget configuration activity.");
completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId);
+ mWorkspace.stripEmptyScreens();
} else {
completeTwoStageWidgetDrop(resultCode, appWidgetId);
}
@@ -760,6 +761,8 @@ public class Launcher extends Activity
} else {
delayExitSpringLoadedMode = completeAdd(args);
}
+ } else if (resultCode == RESULT_CANCELED) {
+ mWorkspace.stripEmptyScreens();
}
mDragLayer.clearAnimatedView();
// Exit spring loaded mode if necessary after cancelling the configuration of a widget