mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-27 07:49:28 +00:00
Improved conversations list refresh frequency
This commit is contained in:
parent
4de0b62117
commit
dadb64dbff
@ -124,9 +124,6 @@ public class ConversationsListFragment extends AbstractFragment implements Adapt
|
|||||||
mNoConversationNotice = view.findViewById(R.id.no_conversation_notice);
|
mNoConversationNotice = view.findViewById(R.id.no_conversation_notice);
|
||||||
mNoConversationNotice.setVisibility(View.GONE);
|
mNoConversationNotice.setVisibility(View.GONE);
|
||||||
|
|
||||||
//Refresh conversations list
|
|
||||||
refresh_conversations_list(false);
|
|
||||||
|
|
||||||
//Set the open and update conversation listener
|
//Set the open and update conversation listener
|
||||||
try {
|
try {
|
||||||
openConvListener = (openConversationListener) getActivity();
|
openConvListener = (openConversationListener) getActivity();
|
||||||
@ -148,6 +145,9 @@ public class ConversationsListFragment extends AbstractFragment implements Adapt
|
|||||||
//Update activity title
|
//Update activity title
|
||||||
Objects.requireNonNull(getActivity()).setTitle(R.string.fragment_conversationslist_title);
|
Objects.requireNonNull(getActivity()).setTitle(R.string.fragment_conversationslist_title);
|
||||||
MainActivity.SetNavbarSelectedOption(getActivity(), R.id.action_conversations);
|
MainActivity.SetNavbarSelectedOption(getActivity(), R.id.action_conversations);
|
||||||
|
|
||||||
|
//Refresh conversations list
|
||||||
|
refresh_conversations_list(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -156,6 +156,7 @@ public class ConversationsListFragment extends AbstractFragment implements Adapt
|
|||||||
private void refresh_conversations_list(boolean online){
|
private void refresh_conversations_list(boolean online){
|
||||||
|
|
||||||
//Display loading wheel
|
//Display loading wheel
|
||||||
|
mGotFirstList = online;
|
||||||
mProgressBar.setVisibility(View.VISIBLE);
|
mProgressBar.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
//Get the list of conversations
|
//Get the list of conversations
|
||||||
|
Loading…
Reference in New Issue
Block a user