diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-11-22 19:27:37 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-11-22 19:27:37 +0100 |
commit | 822bfe40481803b2dbe6f874788afbe0c9380145 (patch) | |
tree | 853cf14f71bf165d80f4125898ee8b9567880059 /src/main/java/de/pixart/messenger/ui/ConversationActivity.java | |
parent | 53b5dfbe16676a314d5929592a118169a61b4085 (diff) |
stop scrolling before changing conversations
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java index 2e20b6bc4..3205b1439 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java @@ -162,6 +162,9 @@ public class ConversationActivity extends XmppActivity } public void showConversationsOverview() { + if (mConversationFragment != null) { + mConversationFragment.stopScrolling(); + } if (mContentView instanceof SlidingPaneLayout) { SlidingPaneLayout mSlidingPaneLayout = (SlidingPaneLayout) mContentView; mShouldPanelBeOpen.set(true); @@ -253,6 +256,7 @@ public class ConversationActivity extends XmppActivity public void onItemClick(AdapterView<?> arg0, View clickedView, int position, long arg3) { if (getSelectedConversation() != conversationList.get(position)) { + ConversationActivity.this.mConversationFragment.stopScrolling(); setSelectedConversation(conversationList.get(position)); ConversationActivity.this.mConversationFragment.reInit(getSelectedConversation()); conversationWasSelectedByKeyboard = false; @@ -1236,6 +1240,7 @@ public class ConversationActivity extends XmppActivity private boolean openConversationByIndex(int index) { try { this.conversationWasSelectedByKeyboard = true; + this.mConversationFragment.stopScrolling(); setSelectedConversation(this.conversationList.get(index)); this.mConversationFragment.reInit(getSelectedConversation()); if (index > listView.getLastVisiblePosition() - 1 || index < listView.getFirstVisiblePosition() + 1) { @@ -1503,6 +1508,7 @@ public class ConversationActivity extends XmppActivity final String text = intent.getStringExtra(TEXT); final String nick = intent.getStringExtra(NICK); final boolean pm = intent.getBooleanExtra(PRIVATE_MESSAGE, false); + this.mConversationFragment.stopScrolling(); if (selectConversationByUuid(uuid)) { this.mConversationFragment.reInit(getSelectedConversation()); if (nick != null) { |