After selecting a Date Time Format in the settings this error occurs:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: xyz.hisname.fireflyiii.debug, PID: 24736
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:302)
at xyz.hisname.fireflyiii.data.local.pref.AppPref.getDateTimeFormat(AppPref.kt:136)
This gets saved in the sharedPrefs after selecting the Date Time Format:
After selecting a
Date Time Format
in the settings this error occurs:This gets saved in the sharedPrefs after selecting the
Date Time Format
:This is line is causing the error: https://github.com/emansih/FireflyMobile/blob/33032edac20dd0b2eaca79046a1b386c80242176/app/src/main/java/xyz/hisname/fireflyiii/data/local/pref/AppPref.kt#L136
Possible fix: