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

Commit 3b028d75 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Use platform delay for assist long press gesture

Bug: 20853645
Change-Id: I1f25a04bfc7d07077211743b9d258fd637a402e6
parent ee77cebc
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -69,9 +69,6 @@
    <!-- Show rotation lock toggle in System UI-->
    <bool name="config_showRotationLock">true</bool>

    <!-- Amount of time to hold off before showing the search panel when the user presses home -->
    <integer name="config_show_search_delay">200</integer>

    <!-- Vibration duration for GlowPadView used in SearchPanelView -->
    <integer translatable="false" name="config_vibration_duration">0</integer>

+2 −2
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ import android.view.MotionEvent;
import android.view.ThreadedRenderer;
import android.view.VelocityTracker;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewStub;
import android.view.WindowManager;
@@ -1197,8 +1198,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
    }

    private void updateShowSearchHoldoff() {
        mShowSearchHoldoff = mContext.getResources().getInteger(
            R.integer.config_show_search_delay);
        mShowSearchHoldoff = ViewConfiguration.getLongPressTimeout();
    }

    private void updateNotificationShade() {