aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui/widget
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-11-23 21:00:55 +0100
committerChristian Schneppe <christian@pix-art.de>2017-11-23 21:03:38 +0100
commit25056d10a6648aedd0d77fccf80a33adf65d0f8b (patch)
treec84ca2b71fc474850af1fbfc22e4daf9236a5838 /src/main/java/de/pixart/messenger/ui/widget
parenta42f6ec1caad233ec9b878ebfa7ba5070ffd67ef (diff)
code cleanup
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/widget')
-rw-r--r--src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java2
-rw-r--r--src/main/java/de/pixart/messenger/ui/widget/ListSelectionManager.java5
2 files changed, 2 insertions, 5 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 59223adcd..ebd268bd0 100644
--- a/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java
+++ b/src/main/java/de/pixart/messenger/ui/widget/CopyTextView.java
@@ -30,7 +30,7 @@ public class CopyTextView extends EmojiTextView {
}
public interface CopyHandler {
- public String transformTextForCopy(CharSequence text, int start, int end);
+ 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 5ac6f9134..f86357308 100644
--- a/src/main/java/de/pixart/messenger/ui/widget/ListSelectionManager.java
+++ b/src/main/java/de/pixart/messenger/ui/widget/ListSelectionManager.java
@@ -141,10 +141,7 @@ public class ListSelectionManager {
@Override
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
- if (additionalCallback != null && additionalCallback.onActionItemClicked(mode, item)) {
- return true;
- }
- return false;
+ return additionalCallback != null && additionalCallback.onActionItemClicked(mode, item);
}
@Override