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

Commit 21f038ee authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Stop showing more suggestions while important notice is showing

Bug: 15812659
Change-Id: I314e235cfffae3ae655320a9a75867efc28066bf
parent a2dbc448
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -131,6 +131,10 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
            mImportantNoticeStrip.setVisibility(VISIBLE);
        }

        public boolean isShowingImportantNoticeStrip() {
            return mImportantNoticeStrip.getVisibility() == VISIBLE;
        }

        public boolean isShowingAddToDictionaryStrip() {
            return mAddToDictionaryStrip.getVisibility() == VISIBLE;
        }
@@ -393,7 +397,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick

    @Override
    public boolean onInterceptTouchEvent(final MotionEvent me) {
        if (mMoreSuggestionsView.isInModalMode()) {
        if (mStripVisibilityGroup.isShowingImportantNoticeStrip()) {
            return false;
        }
        if (!mMoreSuggestionsView.isShowingInParent()) {
@@ -401,6 +405,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
            mLastY = (int)me.getY();
            return mMoreSuggestionsSlidingDetector.onTouchEvent(me);
        }
        if (mMoreSuggestionsView.isInModalMode()) {
            return false;
        }

        final int action = me.getAction();
        final int index = me.getActionIndex();