summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherRootView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/LauncherRootView.java')
-rw-r--r--src/com/android/launcher3/LauncherRootView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherRootView.java b/src/com/android/launcher3/LauncherRootView.java
index 1a1bec684..290c51734 100644
--- a/src/com/android/launcher3/LauncherRootView.java
+++ b/src/com/android/launcher3/LauncherRootView.java
@@ -66,6 +66,7 @@ public class LauncherRootView extends InsettableFrameLayout {
// Update device profile before notifying th children.
mLauncher.getDeviceProfile().updateInsets(insets);
+ boolean resetState = !insets.equals(mInsets);
setInsets(insets);
if (mAlignedView != null) {
@@ -77,6 +78,9 @@ public class LauncherRootView extends InsettableFrameLayout {
mAlignedView.setLayoutParams(lp);
}
}
+ if (resetState) {
+ mLauncher.getStateManager().reapplyState();
+ }
return true; // I'll take it from here
}