This commit is contained in:
Eric House 2020-12-28 10:52:15 -08:00
parent 35bdd2282e
commit d72142ad40
2 changed files with 7 additions and 3 deletions

View file

@ -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" );

View file

@ -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 )