diff options
author | Maurice Lam <yukl@google.com> | 2015-05-07 17:57:47 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-07 17:57:48 +0000 |
commit | b3020fef9476e0a864bb1609e5c17ee936ca1249 (patch) | |
tree | fff323be6fd72598963756f622fd4244e93cc888 | |
parent | c333d5002d0c005ecbb16034e92752b95c0e39ed (diff) | |
parent | 69893e24fd4d57cde5aaca022eb7bd5a7f859d14 (diff) | |
download | setupwizard-b3020fef9476e0a864bb1609e5c17ee936ca1249.tar.gz |
Merge "[SetupWizardLib] Force layout after setting margin" into ub-setupwizard-alatar
-rw-r--r-- | library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java b/library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java index 4cba014..c25d9b6 100644 --- a/library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java +++ b/library/main/src/com/android/setupwizardlib/util/SystemBarHelper.java @@ -225,7 +225,7 @@ public class SystemBarHelper { ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) view.getLayoutParams(); lp.setMargins(lp.leftMargin, lp.topMargin, lp.rightMargin, bottomMargin); - view.requestLayout(); + view.forceLayout(); return insets.replaceSystemWindowInsets( insets.getSystemWindowInsetLeft(), |