mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 14:17:12 +00:00
Add directBoot support. Fixes #917
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Beka Gozalishvili
|
||||
* Copyright (C) 2012-2013 Reece H. Dunn
|
||||
* Copyright (C) 2009 The Android Open Source Project
|
||||
*
|
||||
@@ -45,10 +46,11 @@ public class DownloadVoiceData extends Activity {
|
||||
|
||||
setContentView(R.layout.download_voice_data);
|
||||
mProgress = (ProgressBar)findViewById(R.id.progress);
|
||||
Context storageContext = EspeakApp.getStorageContext();
|
||||
|
||||
final File dataPath = CheckVoiceData.getDataPath(this).getParentFile();
|
||||
final File dataPath = CheckVoiceData.getDataPath(storageContext).getParentFile();
|
||||
|
||||
mAsyncExtract = new AsyncExtract(this, R.raw.espeakdata, dataPath, mProgress) {
|
||||
mAsyncExtract = new AsyncExtract(storageContext, R.raw.espeakdata, dataPath, mProgress) {
|
||||
@Override
|
||||
protected void onPostExecute(Integer result) {
|
||||
switch (result) {
|
||||
|
||||
Reference in New Issue
Block a user