am 2b72aa07: Disconnect app data search client after fetching all data.
* commit '2b72aa07a9ac952e5d28cf657632e8d31d247baf': Disconnect app data search client after fetching all data.main
commit
099051772f
|
@ -232,6 +232,12 @@ public class DictionaryFacilitatorForSuggest {
|
|||
return null != mPersonalizationDictionary;
|
||||
}
|
||||
|
||||
public void flushPersonalizationDictionary() {
|
||||
if (hasPersonalizationDictionary()) {
|
||||
mPersonalizationDictionary.flush();
|
||||
}
|
||||
}
|
||||
|
||||
public void waitForLoadingMainDictionary(final long timeout, final TimeUnit unit)
|
||||
throws InterruptedException {
|
||||
mLatchForWaitingLoadingMainDictionary.await(timeout, unit);
|
||||
|
|
|
@ -68,6 +68,11 @@ public abstract class DecayingExpandableBinaryDictionaryBase extends ExpandableB
|
|||
dumpAllWordsForDebug();
|
||||
}
|
||||
// Flush pending writes.
|
||||
flush();
|
||||
// TODO: Quit depending on finalize() and really close the dictionary file.
|
||||
}
|
||||
|
||||
public void flush() {
|
||||
asyncFlushBinaryDictionary();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue