diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-10-03 22:32:36 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-10-03 22:32:36 +0200 |
commit | 5d33380061a94b15a88b8c5c746791192fc44854 (patch) | |
tree | 47e2a41253ec621fea8551929aa27b2b1ec244e2 /src/main | |
parent | 26cc9dcbea89b5767c4c4c7dd3cfeb11a7ab168d (diff) |
remove unused SimpleFingerGestures_Android_Library
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 44 | ||||
-rw-r--r-- | src/main/res/values/defaults.xml | 1 |
2 files changed, 0 insertions, 45 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 2655837fa..5c7c4bb10 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -117,7 +117,6 @@ import de.pixart.messenger.utils.UIHelper; import de.pixart.messenger.xmpp.XmppConnection; import de.pixart.messenger.xmpp.chatstate.ChatState; import de.pixart.messenger.xmpp.jingle.JingleConnection; -import in.championswimmer.sfg.lib.SimpleFingerGestures; import rocks.xmpp.addr.Jid; import static de.pixart.messenger.ui.XmppActivity.EXTRA_ACCOUNT; @@ -180,7 +179,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke }; private boolean reInitRequiredOnStart = true; private MediaPreviewAdapter mediaPreviewAdapter; - private SimpleFingerGestures gesturesDetector = new SimpleFingerGestures(); private OnClickListener clickToMuc = new OnClickListener() { @Override @@ -2215,48 +2213,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke this.binding.messagesView.post(this::fireReadEvent); //TODO if we only do this when this fragment is running on main it won't *bing* in tablet layout which might be unnecessary since we can *see* it activity.xmppConnectionService.getNotificationService().setOpenConversation(this.conversation); - - // todo temporarly disable swipe gestures - /* - gesturesDetector.setOnFingerGestureListener(new SimpleFingerGestures.OnFingerGestureListener() { - @Override - public boolean onSwipeUp(int fingers, long gestureDuration, double gestureDistance) { - return false; - } - - @Override - public boolean onSwipeDown(int fingers, long gestureDuration, double gestureDistance) { - return false; - } - - @Override - public boolean onSwipeLeft(int fingers, long gestureDuration, double gestureDistance) { - return false; - } - - @Override - public boolean onSwipeRight(int fingers, long gestureDuration, double gestureDistance) { - activity.onBackPressed(); - return false; - } - - @Override - public boolean onPinch(int fingers, long gestureDuration, double gestureDistance) { - return false; - } - - @Override - public boolean onUnpinch(int fingers, long gestureDuration, double gestureDistance) { - return false; - } - - @Override - public boolean onDoubleTap(int fingers) { - return false; - } - }); - this.binding.messagesView.setOnTouchListener(gesturesDetector); - */ return true; } diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml index 51971bcfd..29e560124 100644 --- a/src/main/res/values/defaults.xml +++ b/src/main/res/values/defaults.xml @@ -51,7 +51,6 @@ \n\nhttp://leafletjs.com/\n(BSD 2-Clause) \n\nhttps://www.openstreetmap.org/\n(Open Database License) \n\nhttp://xmpp.rocks/\n(The MIT License (MIT)) - \n\nhttps://github.com/championswimmer/SimpleFingerGestures_Android_Library/\n(Apache License, Version 2.0) </string> <string name="default_resource" translatable="false">Phone</string> |