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

Commit 6080f687 authored by Kurt Partridge's avatar Kurt Partridge
Browse files

Remove non-dictionary words and digit touch data.

Output to the ResearchLogger is now queued and only flushed if the word
the user was working on is a dictionary word.

multi-project commit with Ic713ec00777fbdcf4a937b3c77b995257e100fc7

Bug: 6188932
Change-Id: I9de15227ff51be23083d9096f1c1b3d83802fff7
parent 4b910467
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -115,4 +115,12 @@ public abstract class Dictionary {
    public void close() {
        // empty base implementation
    }

    /**
     * Subclasses may override to indicate that this Dictionary is not yet properly initialized.
     */

    public boolean isInitialized() {
        return true;
    }
}
+3 −2
Original line number Diff line number Diff line
@@ -82,8 +82,9 @@ public class DictionaryCollection extends Dictionary {
        return maxFreq;
    }

    public boolean isEmpty() {
        return mDictionaries.isEmpty();
    @Override
    public boolean isInitialized() {
        return !mDictionaries.isEmpty();
    }

    @Override
+3 −0
Original line number Diff line number Diff line
@@ -456,6 +456,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        }

        mIsMainDictionaryAvailable = DictionaryFactory.isDictionaryAvailable(this, subtypeLocale);
        if (ProductionFlag.IS_EXPERIMENTAL) {
            ResearchLogger.getInstance().initSuggest(mSuggest);
        }

        mUserDictionary = new UserBinaryDictionary(this, localeStr);
        mIsUserDictionaryAvailable = mUserDictionary.isEnabled();
+280 −153

File changed.

Preview size limit exceeded, changes collapsed.

+11 −7

File changed.

Preview size limit exceeded, changes collapsed.