Skip to content

Commit

Permalink
[NavigationView] Fixed item being checked instead of submenu item
Browse files Browse the repository at this point in the history
Resolves #4155

Resolves #4187

GIT_ORIGIN_REV_ID=0f539d1e079f4bfcb044db26a4a0064538d29f05
PiperOrigin-RevId: 642317463
  • Loading branch information
blah1234 authored and pekingme committed Jun 11, 2024
1 parent 61597e1 commit 3a31eef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,8 @@ private void prepareMenuItems() {
if (subMenuItem.isCheckable()) {
subMenuItem.setExclusiveCheckable(false);
}
if (item.isChecked()) {
setCheckedItem(item);
if (subMenuItem.isChecked()) {
setCheckedItem(subMenuItem);
}
items.add(new NavigationMenuTextItem(subMenuItem));
}
Expand Down

0 comments on commit 3a31eef

Please sign in to comment.