Skip to content

Commit 2522880

Browse files
author
Adam Cohen
committed
Fix issue 7468224, make sure to size pages if page changes
Change-Id: I8b3d7573eda7ed8e6a9aa479e61737fb12e26b92
1 parent 180cfd5 commit 2522880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void onPageSwitched(View newPage, int newPageIndex) {
115115
// This prevents conflicts.
116116

117117
// If the page hasn't switched, don't bother with any of this
118-
if (mCurrentPage != newPageIndex) return;
118+
if (mCurrentPage == newPageIndex) return;
119119

120120
if (mPagedView != null && mChallengeLayout != null) {
121121
KeyguardWidgetFrame prevPage = mPagedView.getWidgetPageAt(mCurrentPage);

0 commit comments

Comments
 (0)