Skip to content

Commit

Permalink
Accessibility: enable accessibility if Talkback is on
Browse files Browse the repository at this point in the history
  • Loading branch information
thgcode authored and LibretroAdmin committed Jun 2, 2024
1 parent b4ed4b5 commit 22646d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -2885,6 +2885,11 @@ void config_set_defaults(void *data)
settings->bools.accessibility_enable, RAIsVoiceOverRunning());
#endif

#ifdef ANDROID
configuration_set_bool(settings,
settings->bools.accessibility_enable, is_narrator_running(true));
#endif

#ifdef HAVE_MENU
if (first_initialized)
configuration_set_bool(settings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ private void traverseFilesystem(File file) {
}

public boolean isScreenReaderEnabled() {
getWindow().getDecorView().announceForAccessibility("Hello world!");
AccessibilityManager accessibilityManager = (AccessibilityManager) getSystemService(ACCESSIBILITY_SERVICE);
boolean isAccessibilityEnabled = accessibilityManager.isEnabled();
boolean isExploreByTouchEnabled = accessibilityManager.isTouchExplorationEnabled();
Expand Down

0 comments on commit 22646d3

Please sign in to comment.