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

Commit 4671ce56 authored by Joe Onorato's avatar Joe Onorato
Browse files

Make keyguard also ask to turn the back button off, now that it is controlled separately.

Bug: 3363046
Change-Id: Iaa7bc0428ae4a8f0c133fd699b762e6c4f167d63
parent 6478adc6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -50,6 +50,8 @@ public abstract class KeyguardViewBase extends FrameLayout {
    public KeyguardViewBase(Context context) {
        super(context);

        setSystemUiVisibility(STATUS_BAR_DISABLE_BACK);

        // This is a faster way to draw the background on devices without hardware acceleration
        setBackgroundDrawable(new Drawable() {
            @Override
@@ -235,4 +237,9 @@ public abstract class KeyguardViewBase extends FrameLayout {
        return false;
    }

    @Override
    public void dispatchSystemUiVisibilityChanged(int visibility) {
        super.dispatchSystemUiVisibilityChanged(visibility);
        setSystemUiVisibility(STATUS_BAR_DISABLE_BACK);
    }
}