mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-11 08:48:06 +01:00
cleanup
This commit is contained in:
parent
35bdd2282e
commit
d72142ad40
2 changed files with 7 additions and 3 deletions
|
@ -1403,7 +1403,7 @@ public class DictsDelegate extends ListDelegateBase
|
||||||
// DictLangCache hits the DB hundreds of times below. Fix!
|
// DictLangCache hits the DB hundreds of times below. Fix!
|
||||||
Log.w( TAG, "Fix me I'm stupid" );
|
Log.w( TAG, "Fix me I'm stupid" );
|
||||||
try {
|
try {
|
||||||
// DbgUtils.logf( "data: %s", jsonData );
|
// Log.d( TAG, "data: %s", jsonData );
|
||||||
JSONObject obj = new JSONObject( jsonData );
|
JSONObject obj = new JSONObject( jsonData );
|
||||||
langs = obj.optJSONArray( "langs" );
|
langs = obj.optJSONArray( "langs" );
|
||||||
|
|
||||||
|
|
|
@ -614,7 +614,9 @@ public class Utils {
|
||||||
Assert.assertNotNull( langName );
|
Assert.assertNotNull( langName );
|
||||||
builder.appendPath( DictUtils.addDictExtn( name ) );
|
builder.appendPath( DictUtils.addDictExtn( name ) );
|
||||||
}
|
}
|
||||||
return builder.build();
|
Uri result = builder.build();
|
||||||
|
// Log.d( TAG, "makeDictUri(langName=%s, name=%s) => %s", langName, name, result );
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Uri makeDictUri( Context context, int lang, String name )
|
public static Uri makeDictUri( Context context, int lang, String name )
|
||||||
|
@ -623,7 +625,9 @@ public class Utils {
|
||||||
if ( 0 < lang ) {
|
if ( 0 < lang ) {
|
||||||
langName = DictLangCache.getLangName( context, lang );
|
langName = DictLangCache.getLangName( context, lang );
|
||||||
}
|
}
|
||||||
return makeDictUri( context, langName, name );
|
Uri result = makeDictUri( context, langName, name );
|
||||||
|
// Log.d( TAG, "makeDictUri(lang=%d, name=%s) => %s", lang, name, result );
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getAppVersion( Context context )
|
public static int getAppVersion( Context context )
|
||||||
|
|
Loading…
Add table
Reference in a new issue