Hide the accessibility location preference when gesture navigation mode enabled.

If it's grey out, users don't have the alternative way in that page to enable it. According to the UX design, we should hide it if it is needed.

Bug: 186776534
Test: make RunSettingsRoboTests -j52 ROBOTEST_FILTER=AccessibilityButtonLocationPreferenceControllerTest
Change-Id: If2f659da32345938e2930fde42365cd796571068
This commit is contained in:
menghanli
2021-05-03 13:42:24 +08:00
parent 6f1ae5d67a
commit 95aa089858
2 changed files with 4 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ public class AccessibilityButtonLocationPreferenceController extends BasePrefere
@Override
public int getAvailabilityStatus() {
return AccessibilityUtil.isGestureNavigateEnabled(mContext)
? DISABLED_DEPENDENT_SETTING : AVAILABLE;
? CONDITIONALLY_UNAVAILABLE : AVAILABLE;
}
@Override