1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-12 04:25:08 -05:00

Remove text selection menu item for JB and higher.

Those versions have text selection support built-in (via long pressing
the WebView).
This commit is contained in:
Danny Baumann 2013-02-06 15:39:11 +01:00 committed by cketti
parent 2ea0961006
commit 728c1bdabe

View File

@ -978,6 +978,9 @@ public class MessageList extends K9FragmentActivity implements MessageListFragme
menu.findItem(R.id.copy).setVisible(mMessageViewFragment.isCopyCapable()); menu.findItem(R.id.copy).setVisible(mMessageViewFragment.isCopyCapable());
// Jellybean has built-in long press selection support
menu.findItem(R.id.select_text).setVisible(Build.VERSION.SDK_INT < 16);
if (mMessageViewFragment.isMoveCapable()) { if (mMessageViewFragment.isMoveCapable()) {
menu.findItem(R.id.move).setVisible(true); menu.findItem(R.id.move).setVisible(true);
menu.findItem(R.id.archive).setVisible(mMessageViewFragment.canMessageBeArchived()); menu.findItem(R.id.archive).setVisible(mMessageViewFragment.canMessageBeArchived());