mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Stop showing more suggestions while important notice is showing"
This commit is contained in:
commit
97294530d9
@ -131,6 +131,10 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
|
|||||||
mImportantNoticeStrip.setVisibility(VISIBLE);
|
mImportantNoticeStrip.setVisibility(VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isShowingImportantNoticeStrip() {
|
||||||
|
return mImportantNoticeStrip.getVisibility() == VISIBLE;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isShowingAddToDictionaryStrip() {
|
public boolean isShowingAddToDictionaryStrip() {
|
||||||
return mAddToDictionaryStrip.getVisibility() == VISIBLE;
|
return mAddToDictionaryStrip.getVisibility() == VISIBLE;
|
||||||
}
|
}
|
||||||
@ -393,7 +397,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onInterceptTouchEvent(final MotionEvent me) {
|
public boolean onInterceptTouchEvent(final MotionEvent me) {
|
||||||
if (mMoreSuggestionsView.isInModalMode()) {
|
if (mStripVisibilityGroup.isShowingImportantNoticeStrip()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!mMoreSuggestionsView.isShowingInParent()) {
|
if (!mMoreSuggestionsView.isShowingInParent()) {
|
||||||
@ -401,6 +405,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
|
|||||||
mLastY = (int)me.getY();
|
mLastY = (int)me.getY();
|
||||||
return mMoreSuggestionsSlidingDetector.onTouchEvent(me);
|
return mMoreSuggestionsSlidingDetector.onTouchEvent(me);
|
||||||
}
|
}
|
||||||
|
if (mMoreSuggestionsView.isInModalMode()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
final int action = me.getAction();
|
final int action = me.getAction();
|
||||||
final int index = me.getActionIndex();
|
final int index = me.getActionIndex();
|
||||||
|
Loading…
Reference in New Issue
Block a user