diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-01-18 14:02:47 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-01-18 14:03:19 -0800 |
commit | ce8809a5883bb869e8b1fb991821876b498c18c5 (patch) | |
tree | cbe995e903b46545697f1d9dc0235bf1e5a7e885 /src/com/android/launcher3/LauncherRootView.java | |
parent | f12cfaa1563856710f390b245acb88fc96c80036 (diff) | |
download | android_packages_apps_Trebuchet-ce8809a5883bb869e8b1fb991821876b498c18c5.tar.gz android_packages_apps_Trebuchet-ce8809a5883bb869e8b1fb991821876b498c18c5.tar.bz2 android_packages_apps_Trebuchet-ce8809a5883bb869e8b1fb991821876b498c18c5.zip |
Reapplying state UI when the insets change
Change-Id: Ief9588400f332b2c5b084a8a11c3102b2c20c4ea
Diffstat (limited to 'src/com/android/launcher3/LauncherRootView.java')
-rw-r--r-- | src/com/android/launcher3/LauncherRootView.java | 4 |
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 } |