]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Support selectable text on newer Android.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 29 Oct 2016 15:34:39 +0000 (17:34 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 29 Oct 2016 16:17:02 +0000 (18:17 +0200)
src/com/hughes/android/dictionary/DictionaryActivity.java

index 28c5b6f2fb6d2d0b2a38b580f386900ddda9c75c..5ea0e271093673edc0562bbc4dc95b430861a64a 100644 (file)
@@ -1484,6 +1484,11 @@ public class DictionaryActivity extends ActionBarActivity {
 
                 final TextView col1 = new TextView(tableRow.getContext());
                 final TextView col2 = new TextView(tableRow.getContext());
+                if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB)
+                {
+                    col1.setTextIsSelectable(true);
+                    col2.setTextIsSelectable(true);
+                }
 
                 // Set the columns in the table.
                 if (r > 0) {