Hide fab when bottom navigation visible

This commit is contained in:
Arne 2024-09-02 22:58:36 +02:00
parent 5453a939d0
commit acb3ea5456

View file

@ -535,7 +535,15 @@ public class ConversationsOverviewFragment extends XmppFragment {
}
}
} else {
binding.fab.setVisibility(View.VISIBLE);
if (activity instanceof ConversationsActivity) {
boolean showed = ((ConversationsActivity) activity).showNavigationBar();
if (showed) {
this.binding.fab.setVisibility(View.GONE);
} else {
this.binding.fab.setVisibility(View.VISIBLE);
}
}
}
setupSwipe();
}