diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-11-28 20:48:45 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-11-28 22:09:51 +0100 |
commit | bdb970b8ada0363b9bc01d211f4af794b52c9284 (patch) | |
tree | 8818e0e75bd1cdc542117ab1540558cf8111b4c2 /src/main/java/de/pixart/messenger/ui/widget | |
parent | 13c34e7d0f1d49cb5a3fdd5ebd6b62794cbcded9 (diff) |
some bug fixes
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/widget')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java | 2 | ||||
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/widget/ListSelectionManager.java | 5 |
2 files changed, 5 insertions, 2 deletions
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 |