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

Commit ad525f9c authored by Ziqi Chen's avatar Ziqi Chen Committed by Automerger Merge Worker
Browse files

Merge "Fix crash: NPE in SuggestionStripView in LatinIME" into main am: 94b93914 am: d4249b45

parents 682494ec d4249b45
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();