Skip to content

Commit eec4fe2

Browse files
committed
Use stable layouts for keyguard/SlidingChallengeLayout
When coming back from the secure camera we will be transitioning from fullscreen back to not-fullscreen with regard to the status bar. Flag SlidingChallengeLayout to force the window to have stable insets so that our layout doesn't jump around during this transition. Set the same flag in MultiPaneChallengeLayout as well so that similar cases with other activities are also covered. Bug 7498950 Change-Id: I1b65e04d1404e764ddad29472b70cf791d6801f9
1 parent fd8c388 commit eec4fe2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

policy/src/com/android/internal/policy/impl/keyguard/MultiPaneChallengeLayout.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public MultiPaneChallengeLayout(Context context, AttributeSet attrs, int defStyl
7777

7878
final Resources res = getResources();
7979
mDisplayMetrics = res.getDisplayMetrics();
80+
81+
setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_STABLE);
8082
}
8183

8284
@Override

policy/src/com/android/internal/policy/impl/keyguard/SlidingChallengeLayout.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ public SlidingChallengeLayout(Context context, AttributeSet attrs, int defStyle)
260260
mChallengeBottomBound = res.getDimensionPixelSize(R.dimen.kg_widget_pager_bottom_padding);
261261

262262
setWillNotDraw(false);
263+
setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_STABLE);
263264
}
264265

265266
public void setHandleAlpha(float alpha) {

0 commit comments

Comments
 (0)