mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 12:00:17 +02:00
formatting
This commit is contained in:
parent
f2577669df
commit
b5007edc82
1 changed files with 5 additions and 3 deletions
|
@ -40,14 +40,16 @@ public class OpenDictionaryFlyout {
|
|||
myPackageName = dictionary.getApplicationPackageName();
|
||||
}
|
||||
|
||||
private Dictionary getDictionary(final Context context ) {
|
||||
if (myPackageName == null)
|
||||
private Dictionary getDictionary(final Context context) {
|
||||
if (myPackageName == null) {
|
||||
return null;
|
||||
}
|
||||
final OpenDictionaryAPI api = new OpenDictionaryAPI(context);
|
||||
HashSet<Dictionary> dictionaries = api.getDictionaries(myDirection);
|
||||
for (Dictionary dictionary : dictionaries) {
|
||||
if (myPackageName.equalsIgnoreCase(dictionary.getApplicationPackageName()))
|
||||
if (myPackageName.equalsIgnoreCase(dictionary.getApplicationPackageName())) {
|
||||
return dictionary;
|
||||
}
|
||||
}
|
||||
Log.e("FBReader", "OpenDictionaryFlyout:getDictionary - Dictionary with direction [" +
|
||||
myDirection.toString() + "] and package name [" + myPackageName + "] not found");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue