Remove suggestion appears when only 1 word is displayed (#84)

This commit is contained in:
BlackyHawky 2023-08-16 18:51:38 +02:00 committed by GitHub
parent 50921ef8cd
commit eed4794887
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -315,7 +315,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
AudioAndHapticFeedbackManager.getInstance().performHapticAndAudioFeedback(
Constants.NOT_A_CODE, this);
if (isShowingMoreSuggestionPanel() || !showMoreSuggestions()) {
for (int i = 0; i < mStartIndexOfMoreSuggestions; i++) {
for (int i = 0; i <= mStartIndexOfMoreSuggestions; i++) {
if (view == mWordViews.get(i)) {
showDeleteSuggestionDialog(mWordViews.get(i));
return true;