Fixed hide_tab_bar_on_secondary_level_screens custom option
This commit is contained in:
parent
e40a59ff92
commit
20c32ccdab
2 changed files with 19 additions and 2 deletions
|
@ -298,7 +298,10 @@ public abstract class MainActivity extends LinphoneGenericActivity
|
|||
super.onResume();
|
||||
|
||||
hideTopBar();
|
||||
showTabBar();
|
||||
if (getFragmentManager().getBackStackEntryCount() == 0
|
||||
|| !getResources().getBoolean(R.bool.hide_bottom_bar_on_second_level_views)) {
|
||||
showTabBar();
|
||||
}
|
||||
|
||||
mHistorySelected.setVisibility(View.GONE);
|
||||
mContactsSelected.setVisibility(View.GONE);
|
||||
|
@ -384,6 +387,10 @@ public abstract class MainActivity extends LinphoneGenericActivity
|
|||
public boolean popBackStack() {
|
||||
if (getFragmentManager().getBackStackEntryCount() > 0) {
|
||||
getFragmentManager().popBackStackImmediate();
|
||||
if (getFragmentManager().getBackStackEntryCount() == 0
|
||||
&& getResources().getBoolean(R.bool.hide_bottom_bar_on_second_level_views)) {
|
||||
showTabBar();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -597,6 +604,16 @@ public abstract class MainActivity extends LinphoneGenericActivity
|
|||
}
|
||||
}
|
||||
|
||||
if (getResources().getBoolean(R.bool.hide_bottom_bar_on_second_level_views)) {
|
||||
if (isChild) {
|
||||
if (!isTablet()) {
|
||||
hideTabBar();
|
||||
}
|
||||
} else {
|
||||
showTabBar();
|
||||
}
|
||||
}
|
||||
|
||||
Compatibility.setFragmentTransactionReorderingAllowed(transaction, false);
|
||||
if (isChild && isTablet()) {
|
||||
transaction.replace(R.id.fragmentContainer2, fragment, name);
|
||||
|
|
|
@ -644,7 +644,7 @@ public class ChatMessagesFragment extends Fragment
|
|||
}
|
||||
|
||||
private void hideKeyboardVisibleMode() {
|
||||
if (getResources().getBoolean(R.bool.hide_bottom_bar_on_second_level_views)) {
|
||||
if (!getResources().getBoolean(R.bool.hide_bottom_bar_on_second_level_views)) {
|
||||
((ChatActivity) getActivity()).showTabBar();
|
||||
}
|
||||
((ChatActivity) getActivity()).showStatusBar();
|
||||
|
|
Loading…
Reference in a new issue