Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fadccf1d authored by Jim Miller's avatar Jim Miller
Browse files

Hide the camera and search icons when switching to the camera page

Partial fix for bug 11190737

Change-Id: I8b14a0b32cec51fe381f8ef110a13623d8324938
parent 39eaeb99
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -139,7 +139,13 @@ public class KeyguardViewStateManager implements
            boolean isCameraPage = newPage instanceof CameraWidgetFrame;
            SlidingChallengeLayout scl = (SlidingChallengeLayout) mChallengeLayout;
            scl.setChallengeInteractive(!isCameraPage);
            if (isCameraPage) scl.fadeOutChallenge();
            if (isCameraPage) {
                scl.fadeOutChallenge();
            }
            final int currentFlags = mKeyguardWidgetPager.getSystemUiVisibility();
            final int newFlags = isCameraPage ? (currentFlags | View.STATUS_BAR_DISABLE_SEARCH)
                    : (currentFlags & ~View.STATUS_BAR_DISABLE_SEARCH);
            mKeyguardWidgetPager.setSystemUiVisibility(newFlags);
        }

        // If the page we're settling to is the same as we started on, and the action of