Add directBoot support. Fixes #917

This commit is contained in:
Beqa Gozalishvili
2022-10-17 17:32:39 +04:00
parent 0ecdd33d18
commit f7f66429a3
10 changed files with 89 additions and 15 deletions
@@ -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) {