mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
Revert "On some devices a downloaded wordlist shows up twice, once in Internal"
This reverts commit 685971532a
.
No way to test this right now....
This commit is contained in:
parent
e4f52c5678
commit
0d260155ee
1 changed files with 4 additions and 11 deletions
|
@ -128,13 +128,10 @@ public class DictUtils {
|
|||
// changes?
|
||||
}
|
||||
|
||||
private static void tryDir( Context context, HashSet<File> seen,
|
||||
File dir, boolean strict,
|
||||
private static void tryDir( Context context, File dir, boolean strict,
|
||||
DictLoc loc, ArrayList<DictAndLoc> al )
|
||||
{
|
||||
if ( null != dir && !seen.contains( dir ) ) {
|
||||
seen.add( dir );
|
||||
|
||||
if ( null != dir ) {
|
||||
String[] list = dir.list();
|
||||
if ( null != list ) {
|
||||
for ( String file : list ) {
|
||||
|
@ -165,12 +162,8 @@ public class DictUtils {
|
|||
}
|
||||
}
|
||||
|
||||
HashSet<File> dirs = new HashSet<File>();
|
||||
dirs.add( context.getFilesDir() );
|
||||
|
||||
tryDir( context, dirs, getSDDir( context ), false,
|
||||
DictLoc.EXTERNAL, al );
|
||||
tryDir( context, dirs, getDownloadDir( context ), true,
|
||||
tryDir( context, getSDDir( context ), false, DictLoc.EXTERNAL, al );
|
||||
tryDir( context, getDownloadDir( context ), true,
|
||||
DictLoc.DOWNLOAD, al );
|
||||
|
||||
s_dictListCache =
|
||||
|
|
Loading…
Add table
Reference in a new issue