diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-01-18 23:05:51 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-01-18 23:05:51 +0000 |
commit | 234b92d4ece44c3447953a71b51d7b5b7241dd08 (patch) | |
tree | 36be81e8aa00132e9762c7a64e72f1c21afc4071 /src/com/android/launcher3/LauncherRootView.java | |
parent | dbcd632214d59e7e1d1103e20cee1c7ac91b4e5a (diff) | |
parent | ce8809a5883bb869e8b1fb991821876b498c18c5 (diff) | |
download | android_packages_apps_Trebuchet-234b92d4ece44c3447953a71b51d7b5b7241dd08.tar.gz android_packages_apps_Trebuchet-234b92d4ece44c3447953a71b51d7b5b7241dd08.tar.bz2 android_packages_apps_Trebuchet-234b92d4ece44c3447953a71b51d7b5b7241dd08.zip |
Merge "Reapplying state UI when the insets change" into ub-launcher3-master
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 c2c8a7c96..18d52343c 100644 --- a/src/com/android/launcher3/LauncherRootView.java +++ b/src/com/android/launcher3/LauncherRootView.java @@ -68,6 +68,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) { @@ -79,6 +80,9 @@ public class LauncherRootView extends InsettableFrameLayout { mAlignedView.setLayoutParams(lp); } } + if (resetState) { + mLauncher.getStateManager().reapplyState(); + } return true; // I'll take it from here } |