android-ktx icon indicating copy to clipboard operation
android-ktx copied to clipboard

DefaultSharedPreferences

Open dovahkiin98 opened this issue 6 years ago • 1 comments

val Context.defaultSharedPreferences get() = PreferenceManager.getDefaultSharedPreferences(this)

dovahkiin98 avatar Mar 08 '18 07:03 dovahkiin98

Hi @dovahkiin98 for the purpose of discussion on this, what do you think the pros and cons of this. My understanding says that this extension function wraps a static method on PreferenceManager inside another static method through extension function. I would like to know your view on this? Are you planning to suggest other methods of PreferenceManager as well?

RamIndani avatar Sep 13 '18 18:09 RamIndani