diff options
Diffstat (limited to 'library/main/src/com/android/setupwizardlib/view')
-rw-r--r-- | library/main/src/com/android/setupwizardlib/view/StatusBarBackgroundLayout.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/library/main/src/com/android/setupwizardlib/view/StatusBarBackgroundLayout.java b/library/main/src/com/android/setupwizardlib/view/StatusBarBackgroundLayout.java index 7fdabec..fe0bc8f 100644 --- a/library/main/src/com/android/setupwizardlib/view/StatusBarBackgroundLayout.java +++ b/library/main/src/com/android/setupwizardlib/view/StatusBarBackgroundLayout.java @@ -69,6 +69,16 @@ public class StatusBarBackgroundLayout extends FrameLayout { } @Override + protected void onAttachedToWindow() { + super.onAttachedToWindow(); + if (Build.VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { + if (mLastInsets == null) { + requestApplyInsets(); + } + } + } + + @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (Build.VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { |