diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-07 22:52:38 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-07 22:52:38 +0200 |
commit | 044018d607d7ebdddad94c09b9ada59ce0838be2 (patch) | |
tree | 2fbee542ffb30d936221cbe34f260a9d2c185606 /src/main/java | |
parent | d788f856081446050bf4c93be6cf3e076b8c85e7 (diff) |
stop scrolling in tablet view after switching conversations
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 24d698b49..04cef92b9 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -2051,6 +2051,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke if (this.activity == null || this.binding == null) { return false; } + stopScrolling(); Log.d(Config.LOGTAG, "reInit(hasExtras=" + Boolean.toString(hasExtras) + ")"); if (this.conversation.isRead() && hasExtras) { @@ -2434,7 +2435,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke } } - public void stopScrolling() { + private void stopScrolling() { long now = SystemClock.uptimeMillis(); MotionEvent cancel = MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0); binding.messagesView.dispatchTouchEvent(cancel); |