You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have getting error while fetching boolean value in kotlin
val isAutoStart : Boolean? = PrefInstance.get(context)?.get(Constants.PREF_SERVICE_IS_ALERT,Boolean::class.java ,false)
Error Log
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:225)
at com.github.pwittchen.prefser.library.Prefser.get(Prefser.java:266)
at com.github.pwittchen.prefser.library.Prefser.get(Prefser.java:239)
The text was updated successfully, but these errors were encountered:
I have getting error while fetching boolean value in kotlin
val isAutoStart : Boolean? = PrefInstance.get(context)?.get(Constants.PREF_SERVICE_IS_ALERT,Boolean::class.java ,false)
Error Log
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:225)
at com.github.pwittchen.prefser.library.Prefser.get(Prefser.java:266)
at com.github.pwittchen.prefser.library.Prefser.get(Prefser.java:239)
The text was updated successfully, but these errors were encountered: