]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Highlight currently shown dictionary.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 19 Mar 2016 22:49:40 +0000 (23:49 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 19 Mar 2016 22:49:40 +0000 (23:49 +0100)
In long-press dictionary list, show the button
for currently show dictionary as pressed.

src/com/hughes/android/dictionary/DictionaryActivity.java

index 173689048ac7e06f704a916c43239705a6dc5801..78c18231c935c7162a1a5461c5c1a482c6b10b72 100644 (file)
@@ -732,6 +732,10 @@ public class DictionaryActivity extends ActionBarActivity {
                         }
                     };
                     button.setOnClickListener(intentLauncher);
+                    if (i == indexIndex && dictFile != null &&
+                        dictFile.getName().equals(dictionaryInfo.uncompressedFilename)) {
+                        button.setPressed(true);
+                    }
                     result.addView(button);
                 }