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

Commit 94b93914 authored by Ziqi Chen's avatar Ziqi Chen Committed by Gerrit Code Review
Browse files

Merge "Fix crash: NPE in SuggestionStripView in LatinIME" into main

parents e9554b09 5f459883
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -343,6 +343,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
            new GestureDetector.SimpleOnGestureListener() {
        @Override
        public boolean onScroll(MotionEvent down, MotionEvent me, float deltaX, float deltaY) {
            if (down == null) {
                return false;
            }
            final float dy = me.getY() - down.getY();
            if (deltaY > 0 && dy < 0) {
                return showMoreSuggestions();