diff options
| author | Menny Even Danan <menny@evendanan.net> | 2016-02-23 17:01:25 +0000 |
|---|---|---|
| committer | Menny Even Danan <menny@evendanan.net> | 2016-02-23 17:01:25 +0000 |
| commit | 752f1e58feb84438b13e211d812cb9ad114d88f0 (patch) | |
| tree | d642d83c90ef83a8c1590c5a3dbc8830049e3063 /src | |
| parent | ee193311a6e46d1035e2783a063e385a1289607d (diff) | |
| download | AnySoftKeyboard-752f1e58feb84438b13e211d812cb9ad114d88f0.tar.gz AnySoftKeyboard-752f1e58feb84438b13e211d812cb9ad114d88f0.tar.bz2 | |
fixing missing double-click-to-add. #573
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java b/src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java index 71e496f56..2bf9f8162 100644 --- a/src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java +++ b/src/main/java/com/anysoftkeyboard/AnySoftKeyboard.java @@ -98,7 +98,6 @@ import com.anysoftkeyboard.utils.Workarounds; import com.google.android.voiceime.VoiceRecognitionTrigger; import com.menny.android.anysoftkeyboard.AnyApplication; import com.menny.android.anysoftkeyboard.BuildConfig; -import com.menny.android.anysoftkeyboard.FeaturesSet; import com.menny.android.anysoftkeyboard.R; import java.util.ArrayList; @@ -2372,12 +2371,9 @@ public abstract class AnySoftKeyboard extends InputMethodService implements && !mSuggest.isValidWord(suggestion)// this is for the case that the word was auto-added upon picking && !mSuggest.isValidWord(suggestion.toString().toLowerCase(getCurrentKeyboard().getLocale())); - if (!mJustAutoAddedWord) { - if (showingAddToDictionaryHint && mCandidateView != null) { - mCandidateView.showAddToDictionaryHint(suggestion); - } - } - if (!TextUtils.isEmpty(mCommittedWord)) { + if (showingAddToDictionaryHint && mCandidateView != null) { + mCandidateView.showAddToDictionaryHint(suggestion); + } else if (!TextUtils.isEmpty(mCommittedWord)) {//if we showingAddToDictionaryHint, we most likely do not have a next-word suggestion! The committed word is not in the dictionary) setSuggestions(mSuggest.getNextSuggestions(mCommittedWord, mWord.isAllUpperCase()), false, false, false); mWord.setFirstCharCapitalized(false); } |
