Skip to content

Commit 15cadc2

Browse files
david-allisonmikehardy
authored andcommitted
fix(reviewer): allow disabling 'voice playback'
If the menu item was removed, but a keyboard shortcut was pressed there was no way to disable the control Fixes 18477
1 parent 3551e63 commit 15cadc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/Reviewer.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,8 @@ open class Reviewer :
867867
val voicePlaybackIcon = menu.findItem(R.id.action_toggle_mic_tool_bar)
868868
if (isMicToolBarVisible) {
869869
voicePlaybackIcon.setTitle(R.string.menu_disable_voice_playback)
870+
// #18477: always show 'disable', even if 'enable' was invisible
871+
voicePlaybackIcon.isVisible = true
870872
} else {
871873
voicePlaybackIcon.setTitle(R.string.menu_enable_voice_playback)
872874
}

0 commit comments

Comments
 (0)