pull/79/head
kunfei 5 years ago
parent 146386d78e
commit c88b750360
  1. 2
      app/src/main/java/io/legado/app/utils/ContextExtensions.kt

@ -127,7 +127,7 @@ fun Context.shareWithQr(title: String, text: String) {
}
}
fun Context.getDarkModeStatus(): Boolean {
fun Context.sysIsDarkMode(): Boolean {
val mode = resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK
return mode == Configuration.UI_MODE_NIGHT_YES
}
Loading…
Cancel
Save