Loading java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java +7 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,11 @@ import android.net.Uri; public class DictionaryPackInstallBroadcastReceiver extends BroadcastReceiver { final LatinIME mService; /** * The action of the intent for publishing that new dictionary data is available. */ /* package */ static final String NEW_DICTIONARY_INTENT_ACTION = "com.android.inputmethod.latin.dictionarypack.newdict"; public DictionaryPackInstallBroadcastReceiver(final LatinIME service) { mService = service; Loading Loading @@ -77,6 +82,8 @@ public class DictionaryPackInstallBroadcastReceiver extends BroadcastReceiver { // TODO: Only reload dictionary on REMOVED when the removed package is the one we // read dictionary from? mService.resetSuggestMainDict(); } else if (action.equals(NEW_DICTIONARY_INTENT_ACTION)) { mService.resetSuggestMainDict(); } } } java/src/com/android/inputmethod/latin/LatinIME.java +5 −0 Original line number Diff line number Diff line Loading @@ -440,6 +440,11 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar packageFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); packageFilter.addDataScheme(SCHEME_PACKAGE); registerReceiver(mDictionaryPackInstallReceiver, packageFilter); final IntentFilter newDictFilter = new IntentFilter(); newDictFilter.addAction( DictionaryPackInstallBroadcastReceiver.NEW_DICTIONARY_INTENT_ACTION); registerReceiver(mDictionaryPackInstallReceiver, newDictFilter); } private void initSuggest() { Loading Loading
java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java +7 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,11 @@ import android.net.Uri; public class DictionaryPackInstallBroadcastReceiver extends BroadcastReceiver { final LatinIME mService; /** * The action of the intent for publishing that new dictionary data is available. */ /* package */ static final String NEW_DICTIONARY_INTENT_ACTION = "com.android.inputmethod.latin.dictionarypack.newdict"; public DictionaryPackInstallBroadcastReceiver(final LatinIME service) { mService = service; Loading Loading @@ -77,6 +82,8 @@ public class DictionaryPackInstallBroadcastReceiver extends BroadcastReceiver { // TODO: Only reload dictionary on REMOVED when the removed package is the one we // read dictionary from? mService.resetSuggestMainDict(); } else if (action.equals(NEW_DICTIONARY_INTENT_ACTION)) { mService.resetSuggestMainDict(); } } }
java/src/com/android/inputmethod/latin/LatinIME.java +5 −0 Original line number Diff line number Diff line Loading @@ -440,6 +440,11 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar packageFilter.addAction(Intent.ACTION_PACKAGE_REMOVED); packageFilter.addDataScheme(SCHEME_PACKAGE); registerReceiver(mDictionaryPackInstallReceiver, packageFilter); final IntentFilter newDictFilter = new IntentFilter(); newDictFilter.addAction( DictionaryPackInstallBroadcastReceiver.NEW_DICTIONARY_INTENT_ACTION); registerReceiver(mDictionaryPackInstallReceiver, newDictFilter); } private void initSuggest() { Loading