diff options
Diffstat (limited to 'src/main/java/de')
-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); |