From bdb970b8ada0363b9bc01d211f4af794b52c9284 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 28 Nov 2017 20:48:45 +0100 Subject: some bug fixes --- src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java | 2 +- .../java/de/pixart/messenger/ui/widget/ListSelectionManager.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main/java/de/pixart/messenger/ui/widget') diff --git a/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java b/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java index ce126fa1f..396a71348 100644 --- a/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java +++ b/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java @@ -29,7 +29,7 @@ public class CopyTextView extends TextView { } public interface CopyHandler { - String transformTextForCopy(CharSequence text, int start, int end); + public String transformTextForCopy(CharSequence text, int start, int end); } private CopyHandler copyHandler; diff --git a/src/main/java/de/pixart/messenger/ui/widget/ListSelectionManager.java b/src/main/java/de/pixart/messenger/ui/widget/ListSelectionManager.java index f86357308..5ac6f9134 100644 --- a/src/main/java/de/pixart/messenger/ui/widget/ListSelectionManager.java +++ b/src/main/java/de/pixart/messenger/ui/widget/ListSelectionManager.java @@ -141,7 +141,10 @@ public class ListSelectionManager { @Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { - return additionalCallback != null && additionalCallback.onActionItemClicked(mode, item); + if (additionalCallback != null && additionalCallback.onActionItemClicked(mode, item)) { + return true; + } + return false; } @Override -- cgit v1.2.3