Ofir Bar02/23/2020, 11:31 AM
object from the Shared Preferences. Here is the line of code I use:
private val mCurrentUser = Defaults[PrefsKeys.user]!!
returns the current
object stored in Shared Preference. The issue is when I change the value in the Shared Preference,
is still the same
object. Can I replace
to be an actual call to the SharedPreference? I guess I am trying to make something like an alias. Because calling Defaults[PrefKeys.user]!! everytime is not very readable.
Tolriq02/23/2020, 11:56 AM
Ofir Bar02/23/2020, 12:06 PM