Skip to content

Instantly share code, notes, and snippets.

@swetakadam
swetakadam / TestSharedPreferences.kt
Created Jul 23, 2020
A shared preferences implementation using HashMaps
View TestSharedPreferences.kt
import android.content.SharedPreferences
// need little clean up to get rid of !!
class TestSharedPreferences() : SharedPreferences, SharedPreferences.Editor {
private val hashMap = mutableMapOf<String,Any>()
lateinit var key : String
lateinit var value : Any
You can’t perform that action at this time.