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

Commit 99264bd8 authored by Demon000's avatar Demon000 Committed by Luca Stefani
Browse files

FODCircleView: disable touch detection on screen off

Change-Id: Icfc46823028edb15473aee71992551ae9f7d21b8
parent 835bcc98
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -119,7 +119,14 @@ public class FODCircleView extends ImageView {

        @Override
        public void onScreenTurnedOff() {
            hideCircle();
            hide();
        }

        @Override
        public void onScreenTurnedOn() {
            if (mUpdateMonitor.isFingerprintDetectionRunning()) {
                show();
            }
        }
    };

@@ -302,6 +309,11 @@ public class FODCircleView extends ImageView {
    }

    public void show() {
        if (!mUpdateMonitor.isScreenOn()) {
            // Keyguard is shown just after screen turning off
            return;
        }

        if (mIsBouncer) {
            // Ignore show calls when Keyguard pin screen is being shown
            return;