Fix back button not reacting to accessibility actions (2)

This line was accidentally not put behind the flag in the last CL.

Bug: 403184586
Test: Manual, i.e. verified that back button is clickable with TalkBack
      enabled. Also verified no regressions in kids themed taskbar.
Flag: com.android.window.flags.predictive_back_three_button_nav
Change-Id: Ia495e3f25e0c15815cb8d26254ecacfe245864a4
This commit is contained in:
Johannes Gallmann committed 2025-03-20 13:20:32 +01:00
1 parent 4d1ab3a784
commit 3db6f288a3
1 file changed
+5 -1
@@ -693,7 +693,11 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
if (mBackButton == null) {
return;
}
setupBackButtonAccessibility(mBackButton, accessibilityDelegate);
if (predictiveBackThreeButtonNav()) {
setupBackButtonAccessibility(mBackButton, accessibilityDelegate);
} else {
mBackButton.setAccessibilityDelegate(accessibilityDelegate);
}
}
public void setWallpaperVisible(boolean isVisible) {