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

Commit 02ce5392 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Dismiss the more suggestions when the user is sliding down the touch point"

parents 697bf585 87104bac
Loading
Loading
Loading
Loading
+4 −5
Original line number Original line Diff line number Diff line
@@ -808,11 +808,10 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
        final int translatedY = moreKeysPanel.translateY(y);
        final int translatedY = moreKeysPanel.translateY(y);


        if (mCheckingIfModalOrSlidingMode) {
        if (mCheckingIfModalOrSlidingMode) {
            final int deltaX = Math.abs(x - mOriginX);
            if (Math.abs(x - mOriginX) >= mMoreSuggestionsModalTolerance
            final int deltaY = Math.abs(y - mOriginY);
                    || mOriginY - y >= mMoreSuggestionsModalTolerance) {
            if (deltaX >= mMoreSuggestionsModalTolerance
                // Decided to be in the sliding input mode only when the touch point has been moved
                    || deltaY >= mMoreSuggestionsModalTolerance) {
                // upward.
                // Decided to be in the sliding input mode
                mCheckingIfModalOrSlidingMode = false;
                mCheckingIfModalOrSlidingMode = false;
                tracker.onShowMoreKeysPanel(
                tracker.onShowMoreKeysPanel(
                        translatedX, translatedY, SystemClock.uptimeMillis(), moreKeysPanel);
                        translatedX, translatedY, SystemClock.uptimeMillis(), moreKeysPanel);