diff options
author | 2025-03-03 17:14:58 +1100 | |
---|---|---|
committer | 2025-03-03 17:22:15 +1100 | |
commit | d44708e36d1963c5914e9a841478b241bdd18469 (patch) | |
tree | e3c2a81e938c9297b1a76a77f9d6e64e9db3b6de | |
parent | d1ca10e9b8a2340d3b3f9c05f132bb022f3dfb9b (diff) |
Remove (x) in nav rail layout when selection is cleared
In the nav rail layout, the burger menu is shown at the top of the rail
This means when the selection is cleared the (X) should disappear and
not be replaced by the burger menu. It appears like the logic currently
clears the selection but doesn't clear the (X) so it sticks around
despite there not being a selection.
Fix: 400324090
Test: Manual check
Flag: com.android.documentsui.flags.use_material3
Change-Id: Ib462bb4bfae43993319474f627db47a47cf5f43e
-rw-r--r-- | src/com/android/documentsui/NavigationViewManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/documentsui/NavigationViewManager.java b/src/com/android/documentsui/NavigationViewManager.java index bd139ec7a..6d56b4590 100644 --- a/src/com/android/documentsui/NavigationViewManager.java +++ b/src/com/android/documentsui/NavigationViewManager.java @@ -322,6 +322,9 @@ public class NavigationViewManager extends SelectionTracker.SelectionObserver<St if (showBurgerMenuOnToolbar) { mToolbar.setNavigationIcon(getActionBarIcon()); mToolbar.setNavigationContentDescription(R.string.drawer_open); + } else { + mToolbar.setNavigationIcon(null); + mToolbar.setNavigationContentDescription(null); } if (shouldShowSearchBar()) { |