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

Commit 2db03b77 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

Make ViewConfiguration#getMultiPressTimeout public

As part of media mainline project, we're resolving hidden API usages.
ViewConfigration#getMultiPressTimeout is a hidden API
used by MediaSessionService, which is going to move to mainline module.

Seeing a public API, ViewConfiguration#getLongPressTimeout,
making getMultiPressTimeout public seems to be trivial.

Bug: 171163798
Test: build successful

Change-Id: I4fb7b884b7496bfc0e4f33a93eb2a69a889a91c5
parent dbf6f138
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -55096,6 +55096,7 @@ package android.view {
    method @Deprecated public static int getMaximumDrawingCacheSize();
    method @Deprecated public static int getMaximumFlingVelocity();
    method @Deprecated public static int getMinimumFlingVelocity();
    method public static int getMultiPressTimeout();
    method public static int getPressedStateDuration();
    method @FloatRange(from=1.0) public float getScaledAmbiguousGestureMultiplier();
    method public int getScaledDoubleTapSlop();
+1 −0
Original line number Diff line number Diff line
@@ -53214,6 +53214,7 @@ package android.view {
    method @Deprecated public static int getMaximumDrawingCacheSize();
    method @Deprecated public static int getMaximumFlingVelocity();
    method @Deprecated public static int getMinimumFlingVelocity();
    method public static int getMultiPressTimeout();
    method public static int getPressedStateDuration();
    method @FloatRange(from=1.0) public float getScaledAmbiguousGestureMultiplier();
    method public int getScaledDoubleTapSlop();
+0 −1
Original line number Diff line number Diff line
@@ -604,7 +604,6 @@ public class ViewConfiguration {
    /**
     * @return the duration in milliseconds between the first tap's up event and the second tap's
     * down event for an interaction to be considered part of the same multi-press.
     * @hide
     */
    public static int getMultiPressTimeout() {
        return AppGlobals.getIntCoreSetting(Settings.Secure.MULTI_PRESS_TIMEOUT,