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

Commit e229a9f8 authored by Michael Webster's avatar Michael Webster
Browse files

Remove vertical gestures prevention code, fixed in frameworks now

Change-Id: Ib3ac0e595174228f74efd22dd38dd8005cec9c7d
parent a6da1e65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -493,5 +493,5 @@
    <string name="gestures_toggle_sound">Toggle sound</string>
    <string name="pref_lockscreen_disable_unlock_tab">Disable unlock slider</string>
    <string name="pref_lockscreen_disable_unlock_tab_summary">Note: You need to enable trackball, menu key, or gesture unlocking before this option becomes available</string>
    <string name="gestures_explain_create_screen">Pick an action to perform (or select Unlock or Sound) and draw a gesture on the screen.\nNote that single-leg vertical (up or down) gestures are invalid.</string>
    <string name="gestures_explain_create_screen">Pick an action to perform (or select Unlock or Sound) and draw a gesture on the screen.</string>
</resources>
+0 −9
Original line number Diff line number Diff line
@@ -118,15 +118,6 @@ public class GestureCreateActivity extends Activity {
            if (mGesture.getLength() < LENGTH_THRESHOLD) {
                overlay.clear(false);
            }
            // check vertical state - can't be less than 45 deg from vertical
            // I'd like to fix this but for now... keep people from making
            // gestures they can't reproduce on the lockscreen
            if (mGesture.getStrokesCount() == 1) {
                RectF box = mGesture.getBoundingBox();
                if (Math.abs(box.width() / box.height()) < 1.0) {
                    overlay.clear(false);
                }
            }
            mDoneButton.setEnabled(true);
        }