aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui/widget
diff options
context:
space:
mode:
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