Skip to content

Commit

Permalink
Don't highlight assistant bottom navigation item because Assistant sc…
Browse files Browse the repository at this point in the history
…reen doesn't have bottom navigation bar

Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Dec 16, 2024
1 parent 79d78ac commit d09c636
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,8 @@ public void setNavigationViewItemChecked() {
if (bottomNavigationView != null) {
MenuItem menuItem = bottomNavigationView.getMenu().findItem(menuItemId);

if (menuItem != null && !menuItem.isChecked()) {
// Don't highlight assistant bottom navigation item because Assistant screen doesn't have bottom navigation bar
if (menuItem != null && !menuItem.isChecked() && menuItem.getItemId() != R.id.nav_assistant) {
menuItem.setChecked(true);
}
}
Expand Down

0 comments on commit d09c636

Please sign in to comment.