App crashes when I try to access the settings.
The app crashes when i try to access the settings page. (Version 1.3.2 from F-Droid)
It seems to be a similar error to Issue#17.
Process: ca.chancehorizon.paseo, PID: 15289
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.get(ArrayList.java:437)
at ca.chancehorizon.paseo.PrefsFragment.setListPreferenceData(PrefsFragment.kt:144)
at ca.chancehorizon.paseo.PrefsFragment.onInit(PrefsFragment.kt:88)
at android.speech.tts.TextToSpeech.dispatchOnInit(TextToSpeech.java:863)
at android.speech.tts.TextToSpeech.access$800(TextToSpeech.java:77)
at android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2226)
at android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute(TextToSpeech.java:2181)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8595)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
My system language is set to English (Germany) and the TTS engine is Samsung text-to-speech engine.
The app does not crash if i switch to googles TTS!!