Merge "Don't notify dictpack for updates for service dump"
commit
8de99ce3d8
|
@ -273,12 +273,14 @@ final public class BinaryDictionaryGetter {
|
|||
* @return The list of addresses of valid dictionary files, or null.
|
||||
*/
|
||||
public static ArrayList<AssetFileAddress> getDictionaryFiles(final Locale locale,
|
||||
final Context context) {
|
||||
final Context context, boolean notifyDictionaryPackForUpdates) {
|
||||
|
||||
final boolean hasDefaultWordList = DictionaryInfoUtils.isDictionaryAvailable(
|
||||
context, locale);
|
||||
BinaryDictionaryFileDumper.cacheWordListsFromContentProvider(locale, context,
|
||||
hasDefaultWordList);
|
||||
if (notifyDictionaryPackForUpdates) {
|
||||
BinaryDictionaryFileDumper.cacheWordListsFromContentProvider(locale, context,
|
||||
hasDefaultWordList);
|
||||
}
|
||||
final File[] cachedWordLists = getCachedWordLists(locale.toString(), context);
|
||||
final String mainDictId = DictionaryInfoUtils.getMainDictId(locale);
|
||||
final DictPackSettings dictPackSettings = new DictPackSettings(context);
|
||||
|
|
|
@ -53,7 +53,7 @@ public final class DictionaryFactory {
|
|||
|
||||
final LinkedList<Dictionary> dictList = new LinkedList<>();
|
||||
final ArrayList<AssetFileAddress> assetFileList =
|
||||
BinaryDictionaryGetter.getDictionaryFiles(locale, context);
|
||||
BinaryDictionaryGetter.getDictionaryFiles(locale, context, true);
|
||||
if (null != assetFileList) {
|
||||
for (final AssetFileAddress f : assetFileList) {
|
||||
final ReadOnlyBinaryDictionary readOnlyBinaryDictionary =
|
||||
|
|
Loading…
Reference in New Issue