]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Remove checks that can never be true.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 12 Feb 2016 20:57:55 +0000 (21:57 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 12 Feb 2016 20:57:55 +0000 (21:57 +0100)
src/com/hughes/android/dictionary/DictionaryManagerActivity.java

index da2c8b75dc7f5c05eda6f7fa32f512f128f53145..146eb696a5599e279d0a3548bcc965615fbb1625 100644 (file)
@@ -590,10 +590,8 @@ public class DictionaryManagerActivity extends ActionBarActivity {
             builder.append(getString(R.string.indexInfo, indexInfo.shortName,
                     indexInfo.mainTokenCount));
         }
-        if (downloadable != null || dictionaryInfo != null) {
-            builder.append("; ");
-            builder.append(getString(R.string.downloadButton, (dictionaryInfo != null ? dictionaryInfo.uncompressedBytes : downloadable.uncompressedBytes) / 1024.0 / 1024.0));
-        }
+        builder.append("; ");
+        builder.append(getString(R.string.downloadButton, dictionaryInfo.uncompressedBytes / 1024.0 / 1024.0));
         if (broken) {
             name.setText("Broken: " + application.getDictionaryName(dictionaryInfo.uncompressedFilename));
             builder.append("; Cannot be used, redownload, check hardware/file system");