Android: Voice typing: Disable "Download update" button while downloading an updated model (#12015)

This commit is contained in:
Henry Heino
2025-03-27 21:57:38 +01:00
committed by GitHub
parent 5966402d8b
commit 6a26ec8105
@@ -186,7 +186,7 @@ const SpeechToTextComponent: React.FC<Props> = props => {
const reDownloadButton = <Button
// Usually, stoppingSession is true because the re-download button has
// just been pressed.
disabled={stoppingSession}
disabled={stoppingSession || recorderState === RecorderState.Downloading}
onPress={onRequestRedownload}
>
{modelIsOutdated ? _('Download updated model') : _('Re-download model')}