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

Commit c9eaf69d authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Revert angle classifier relaxation

Not necessary anymore because we now have a more generic solution

Change-Id: I3f4c509953b79ac6ea4ef67489474c5fb37c7109
Fixes: 77553611
Test: Swipe up and down on keyguard
Test: Swipe up and to the left on keyguard
parent a926126a
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -18,12 +18,11 @@ package com.android.systemui.classifier;

public class AnglesVarianceEvaluator {
    public static float evaluate(float value, int type) {
        final boolean secureUnlock = type == Classifier.BOUNCER_UNLOCK;
        float evaluation = 0.0f;
        if (value > 0.20) evaluation++;
        if (value > 0.40 && !secureUnlock) evaluation++;
        if (value > 0.80 && !secureUnlock) evaluation++;
        if (value > 1.50 && !secureUnlock) evaluation++;
        if (value > 0.40) evaluation++;
        if (value > 0.80) evaluation++;
        if (value > 1.50) evaluation++;
        return evaluation;
    }
}