mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 10:21:31 +00:00
Accessibility: enable accessibility if Talkback is on
This commit is contained in:
parent
b4ed4b58d6
commit
22646d3e74
@ -2885,6 +2885,11 @@ void config_set_defaults(void *data)
|
|||||||
settings->bools.accessibility_enable, RAIsVoiceOverRunning());
|
settings->bools.accessibility_enable, RAIsVoiceOverRunning());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ANDROID
|
||||||
|
configuration_set_bool(settings,
|
||||||
|
settings->bools.accessibility_enable, is_narrator_running(true));
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
if (first_initialized)
|
if (first_initialized)
|
||||||
configuration_set_bool(settings,
|
configuration_set_bool(settings,
|
||||||
|
@ -611,7 +611,6 @@ public class RetroActivityCommon extends NativeActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isScreenReaderEnabled() {
|
public boolean isScreenReaderEnabled() {
|
||||||
getWindow().getDecorView().announceForAccessibility("Hello world!");
|
|
||||||
AccessibilityManager accessibilityManager = (AccessibilityManager) getSystemService(ACCESSIBILITY_SERVICE);
|
AccessibilityManager accessibilityManager = (AccessibilityManager) getSystemService(ACCESSIBILITY_SERVICE);
|
||||||
boolean isAccessibilityEnabled = accessibilityManager.isEnabled();
|
boolean isAccessibilityEnabled = accessibilityManager.isEnabled();
|
||||||
boolean isExploreByTouchEnabled = accessibilityManager.isTouchExplorationEnabled();
|
boolean isExploreByTouchEnabled = accessibilityManager.isTouchExplorationEnabled();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user