diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2019-12-23 10:01:42 +0100 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2019-12-23 10:01:42 +0100 |
commit | 07b4ea61b235de5e3f7d9d51dad106d11d71727e (patch) | |
tree | ee501210b6739916094f9bc52b4f8abf72d11598 /src | |
parent | 5abd54f943aa7e47726c0e48a5e0d61f4b7dce72 (diff) |
small UI refresh changes
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/AbstractConnectionManager.java | 2 | ||||
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/services/AbstractConnectionManager.java b/src/main/java/de/pixart/messenger/services/AbstractConnectionManager.java index 47c4c9171..7414c40c7 100644 --- a/src/main/java/de/pixart/messenger/services/AbstractConnectionManager.java +++ b/src/main/java/de/pixart/messenger/services/AbstractConnectionManager.java @@ -31,7 +31,7 @@ public class AbstractConnectionManager { private static final String KEYTYPE = "AES"; private static final String CIPHERMODE = "AES/GCM/NoPadding"; private static final String PROVIDER = "BC"; - private static final int UI_REFRESH_THRESHOLD = 250; + private static final int UI_REFRESH_THRESHOLD = Config.REFRESH_UI_INTERVAL; private static final AtomicLong LAST_UI_UPDATE_CALL = new AtomicLong(0); protected XmppConnectionService mXmppConnectionService; diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index de03a3838..ed52a8e17 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -256,7 +256,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke } @Override - public void onScroll(final AbsListView view, int firstVisibleItem, int visibleItemCount, final int totalItemCount) { + public void onScroll(final AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { toggleScrollDownButton(view); synchronized (ConversationFragment.this.messageList) { if (firstVisibleItem < 5 && conversation != null && conversation.messagesLoaded.compareAndSet(true, false) && messageList.size() > 0) { @@ -1127,7 +1127,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke menuInviteContact.setVisible(false); menuArchiveChat.setTitle(R.string.action_end_conversation); } - Fragment secondaryFragment = getFragmentManager().findFragmentById(R.id.secondary_fragment); + Fragment secondaryFragment = activity.getFragmentManager().findFragmentById(R.id.secondary_fragment); if (secondaryFragment instanceof ConversationFragment) { if (conversation.getMode() == Conversation.MODE_MULTI) { menuGroupDetails.setTitle(conversation.getMucOptions().isPrivateAndNonAnonymous() ? R.string.action_group_details : R.string.channel_details); |