commit opt import

pull/54/head
ca1e 5 years ago
parent 5083eeaa06
commit 59746d91a3
  1. 1
      app/src/main/java/io/legado/app/utils/ContextExtensions.kt

@ -8,7 +8,6 @@ import androidx.annotation.DrawableRes
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import androidx.core.content.edit import androidx.core.content.edit
import org.jetbrains.anko.defaultSharedPreferences import org.jetbrains.anko.defaultSharedPreferences
import java.util.function.BinaryOperator
fun Context.getPrefBoolean(key: String, defValue: Boolean = false) = fun Context.getPrefBoolean(key: String, defValue: Boolean = false) =
defaultSharedPreferences.getBoolean(key, defValue) defaultSharedPreferences.getBoolean(key, defValue)

Loading…
Cancel
Save