mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Split a method for reuse"
This commit is contained in:
commit
d2cd3d54f9
@ -353,6 +353,11 @@ public class AndroidSpellCheckerService extends SpellCheckerService
|
||||
|
||||
@Override
|
||||
public boolean onUnbind(final Intent intent) {
|
||||
closeAllDictionaries();
|
||||
return false;
|
||||
}
|
||||
|
||||
private void closeAllDictionaries() {
|
||||
final Map<String, DictionaryPool> oldPools = mDictionaryPools;
|
||||
mDictionaryPools = Collections.synchronizedMap(new TreeMap<String, DictionaryPool>());
|
||||
final Map<String, Dictionary> oldUserDictionaries = mUserDictionaries;
|
||||
@ -378,7 +383,6 @@ public class AndroidSpellCheckerService extends SpellCheckerService
|
||||
dictToClose.close();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private DictionaryPool getDictionaryPool(final String locale) {
|
||||
|
Loading…
Reference in New Issue
Block a user