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

Commit afabc598 authored by Adam Cohen's avatar Adam Cohen Committed by android-build-team Robot
Browse files

Make the back longpress timeout a system property

issue 138944380

Test: manual

Change-Id: I9cebea1f7f44298a8723d04df17349cc3cb03067
(cherry picked from commit a699c284)
parent e6780391
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.hardware.input.InputManager;
import android.os.Looper;
import android.os.RemoteException;
import android.os.SystemClock;
import android.os.SystemProperties;
import android.util.Log;
import android.util.MathUtils;
import android.view.Gravity;
@@ -66,7 +67,8 @@ import java.util.concurrent.Executor;
public class EdgeBackGestureHandler implements DisplayListener {

    private static final String TAG = "EdgeBackGestureHandler";
    private static final int MAX_LONG_PRESS_TIMEOUT = 250;
    private static final int MAX_LONG_PRESS_TIMEOUT = SystemProperties.getInt(
            "gestures.back_timeout", 250);

    private final IPinnedStackListener.Stub mImeChangedListener = new IPinnedStackListener.Stub() {
        @Override