From 1ac762b7eaa814dff374b6568f8a74d4dd0a5cea Mon Sep 17 00:00:00 2001 From: zuevval Date: Sat, 3 Oct 2020 13:48:22 +0300 Subject: [PATCH] #278 always announce dots reflection --- .../learnbraille/ui/views/BrailleDotsView.kt | 14 ++++++-------- app/src/main/res/drawable/to_progress.xml | 10 ---------- 2 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 app/src/main/res/drawable/to_progress.xml diff --git a/app/src/main/java/com/github/braillesystems/learnbraille/ui/views/BrailleDotsView.kt b/app/src/main/java/com/github/braillesystems/learnbraille/ui/views/BrailleDotsView.kt index 75d5ef2d..d4551ec8 100644 --- a/app/src/main/java/com/github/braillesystems/learnbraille/ui/views/BrailleDotsView.kt +++ b/app/src/main/java/com/github/braillesystems/learnbraille/ui/views/BrailleDotsView.kt @@ -106,14 +106,12 @@ class BrailleDotsView : ConstraintLayout, KoinComponent { Timber.w("API level < 22, unable co control accessibility traversal order") } - runIf(preferenceRepository.additionalAnnouncementsEnabled) { - context.announce( - when (mode) { - Writing -> context.getString(R.string.braille_dots_mode_writing) - Reading -> context.getString(R.string.braille_dots_mode_reading) - } - ) - } + context.announce( + when (mode) { + Writing -> context.getString(R.string.braille_dots_mode_writing) + Reading -> context.getString(R.string.braille_dots_mode_reading) + } + ) this.mode = mode } diff --git a/app/src/main/res/drawable/to_progress.xml b/app/src/main/res/drawable/to_progress.xml deleted file mode 100644 index fd4c2672..00000000 --- a/app/src/main/res/drawable/to_progress.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - \ No newline at end of file