From 01d3635db6749ab0a7a3b1fe0d322c66d3bdca06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Sat, 29 Oct 2016 17:34:39 +0200 Subject: [PATCH] Support selectable text on newer Android. --- src/com/hughes/android/dictionary/DictionaryActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/hughes/android/dictionary/DictionaryActivity.java b/src/com/hughes/android/dictionary/DictionaryActivity.java index 28c5b6f..5ea0e27 100644 --- a/src/com/hughes/android/dictionary/DictionaryActivity.java +++ b/src/com/hughes/android/dictionary/DictionaryActivity.java @@ -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) { -- 2.43.0