Fixed first chat display issue on tablet

This commit is contained in:
Sylvain Berfini 2018-11-12 16:02:17 +01:00
parent 4a737c1f4d
commit 33d8d77922
2 changed files with 2 additions and 2 deletions

View file

@ -848,7 +848,7 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
}
public void hideTabBar(Boolean hide) {
if (hide) {
if (hide && !isTablet()) { // do not hide if tablet, otherwise won't be able to navigate...
mTabBar.setVisibility(View.GONE);
} else {
mTabBar.setVisibility(View.VISIBLE);

View file

@ -54,7 +54,7 @@ public enum FragmentsAvailable {
return fragment == CHAT_LIST || fragment == CHAT;
case GROUP_CHAT:
return fragment == CHAT_LIST || fragment == GROUP_CHAT;
return fragment == CHAT_LIST || fragment == GROUP_CHAT || fragment == INFO_GROUP_CHAT || fragment == CREATE_CHAT;
case MESSAGE_IMDN:
return fragment == GROUP_CHAT || fragment == MESSAGE_IMDN;