Browse Source

Small fix

pull/15/head
Jan-Lukas Else 2 years ago
parent
commit
1d00e34219
  1. 2
      app/src/main/java/telegra/ph/Prefs.kt

2
app/src/main/java/telegra/ph/Prefs.kt

@ -30,7 +30,7 @@ fun Context.saveBookmarks(bookmarks: List<Pair<String, String>>) {
}
var Context.accessToken: String
get() = PreferenceManager.getDefaultSharedPreferences(this).getString("accessToken", "")
get() = PreferenceManager.getDefaultSharedPreferences(this).getString("accessToken", "") as String
set(value) {
PreferenceManager.getDefaultSharedPreferences(this).edit().putString("accessToken", value).apply()
}

Loading…
Cancel
Save