Hide spinner if chat room creation fails otherwise it will be visible forever

This commit is contained in:
Sylvain Berfini 2019-03-19 17:17:06 +01:00
parent 0168b90b20
commit dcac3200f6
4 changed files with 5 additions and 0 deletions

View file

@ -582,6 +582,7 @@ public class ChatRoomCreationFragment extends Fragment
mChatRoom.addListener(mChatRoomCreationListener); mChatRoom.addListener(mChatRoomCreationListener);
} else { } else {
Log.w("[Chat Room Creation Fragment] createChatRoom returned null..."); Log.w("[Chat Room Creation Fragment] createChatRoom returned null...");
mWaitLayout.setVisibility(View.GONE);
} }
} }
} else { } else {
@ -608,6 +609,7 @@ public class ChatRoomCreationFragment extends Fragment
mChatRoom.addListener(mChatRoomCreationListener); mChatRoom.addListener(mChatRoomCreationListener);
} else { } else {
Log.w("[Chat Room Creation Fragment] createChatRoom returned null..."); Log.w("[Chat Room Creation Fragment] createChatRoom returned null...");
mWaitLayout.setVisibility(View.GONE);
} }
} else { } else {
LinphoneActivity.instance() LinphoneActivity.instance()

View file

@ -350,6 +350,7 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
mTempChatRoom.addListener(mChatRoomCreationListener); mTempChatRoom.addListener(mChatRoomCreationListener);
} else { } else {
Log.w("[Group Info Fragment] createChatRoom returned null..."); Log.w("[Group Info Fragment] createChatRoom returned null...");
mWaitLayout.setVisibility(View.GONE);
} }
} else { } else {
// Subject // Subject

View file

@ -124,6 +124,7 @@ public class ContactDetailsFragment extends Fragment
} else { } else {
Log.w( Log.w(
"[Contact Details Fragment] createChatRoom returned null..."); "[Contact Details Fragment] createChatRoom returned null...");
mWaitLayout.setVisibility(View.GONE);
} }
} else { } else {
room = lc.getChatRoom(participant); room = lc.getChatRoom(participant);

View file

@ -246,6 +246,7 @@ public class HistoryDetailFragment extends Fragment implements OnClickListener {
mChatRoom.addListener(mChatRoomCreationListener); mChatRoom.addListener(mChatRoomCreationListener);
} else { } else {
Log.w("[History Detail Fragment] createChatRoom returned null..."); Log.w("[History Detail Fragment] createChatRoom returned null...");
mWaitLayout.setVisibility(View.GONE);
} }
} else { } else {
room = lc.getChatRoom(participant); room = lc.getChatRoom(participant);