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

Commit 9c993bd6 authored by Jim Miller's avatar Jim Miller
Browse files

Disable camera and search from some security screens.

This disables showing the camera and search buttons in the
navbar while SIM, PUK and Account security screens are showing.

Fixes bug 10991981

Change-Id: Ic64adc079685948f8c1114dbdefa42a671948350
parent a27366ef
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -972,6 +972,11 @@ public class KeyguardHostView extends KeyguardViewBase {
        mAppWidgetContainer.setVisibility(
                isSimOrAccount && fullScreenEnabled ? View.GONE : View.VISIBLE);

        // Don't show camera or search in navbar when SIM or Account screen is showing
        setSystemUiVisibility(isSimOrAccount ?
                (getSystemUiVisibility() | View.STATUS_BAR_DISABLE_SEARCH)
                : (getSystemUiVisibility() & ~View.STATUS_BAR_DISABLE_SEARCH));

        if (mSlidingChallengeLayout != null) {
            mSlidingChallengeLayout.setChallengeInteractive(!fullScreenEnabled);
        }