Tusky-App-Android/app/src/main/java/com/keylesspalace/tusky/util/SharedPreferencesExtensions.kt

8 lines
215 B
Kotlin

package com.keylesspalace.tusky.util
import android.content.SharedPreferences
fun SharedPreferences.getNonNullString(key: String, defValue: String): String {
return this.getString(key, defValue) ?: defValue
}