android-ktx
android-ktx copied to clipboard
DefaultSharedPreferences
val Context.defaultSharedPreferences get() = PreferenceManager.getDefaultSharedPreferences(this)
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?