mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
Add missing compatibility check for older android versions.
This commit is contained in:
@@ -76,7 +76,8 @@ public class TtsService extends TextToSpeechService {
|
||||
@Override
|
||||
public void onCreate() {
|
||||
storageContext = EspeakApp.getStorageContext();
|
||||
storageContext.moveSharedPreferencesFrom(this, this.getPackageName() + "_preferences");
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||
storageContext.moveSharedPreferencesFrom(this, this.getPackageName() + "_preferences");
|
||||
initializeTtsEngine();
|
||||
super.onCreate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user