diff --git a/app/src/main/java/com/ne1c/developerstalk/ui/fragments/ChatRoomFragment.java b/app/src/main/java/com/ne1c/developerstalk/ui/fragments/ChatRoomFragment.java index 8e03c0f..ae391bc 100644 --- a/app/src/main/java/com/ne1c/developerstalk/ui/fragments/ChatRoomFragment.java +++ b/app/src/main/java/com/ne1c/developerstalk/ui/fragments/ChatRoomFragment.java @@ -369,9 +369,9 @@ public void showMessages(ArrayList messages, boolean showProgress, if (mProgressBar.getVisibility() == View.VISIBLE) { mPtrFrameLayout.setVisibility(View.VISIBLE); mProgressBar.setVisibility(View.GONE); - } - isRefreshing = false; + isRefreshing = false; + } } @Override diff --git a/app/src/main/java/com/ne1c/developerstalk/ui/fragments/RoomsListFragment.java b/app/src/main/java/com/ne1c/developerstalk/ui/fragments/RoomsListFragment.java index 0975aab..61466af 100644 --- a/app/src/main/java/com/ne1c/developerstalk/ui/fragments/RoomsListFragment.java +++ b/app/src/main/java/com/ne1c/developerstalk/ui/fragments/RoomsListFragment.java @@ -73,7 +73,6 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, mPresenter.bindView(this); mPresenter.loadCachedRooms(); - mPresenter.loadRooms(); return v; } @@ -82,6 +81,13 @@ public boolean isEdit() { return mIsEdit; } + @Override + public void onResume() { + super.onResume(); + + mPresenter.loadRooms(); + } + public void setEdit(boolean edit) { mIsEdit = edit; if (edit) {