SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private var mPrefs: SharedPreferences
  2.  
  3.     init {
  4.         mPrefs = App.instance.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE)
  5.     }
  6.  
  7.     companion object {
  8.         @Volatile
  9.         private var instance: Prefs? = null
  10.         val PREFS_NAME: String = "com.hentech.eizeseret"
  11.  
  12.  
  13.  
  14.         fun getInstance() = instance ?: synchronized(this) {
  15.             instance ?: Prefs().also { instance = it }
  16.         }
  17.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top