Copy smart background from J2k

This commit is contained in:
Jobobby04
2020-08-06 16:11:00 -04:00
parent c340884adb
commit c2adf2fe0a
10 changed files with 318 additions and 5 deletions
@@ -3,6 +3,7 @@ package exh.util
import android.app.job.JobScheduler
import android.content.ClipboardManager
import android.content.Context
import android.content.res.Configuration
import android.net.wifi.WifiManager
/**
@@ -16,3 +17,8 @@ val Context.clipboardManager: ClipboardManager
val Context.jobScheduler: JobScheduler
get() = applicationContext.getSystemService(Context.JOB_SCHEDULER_SERVICE) as JobScheduler
fun Context.isInNightMode(): Boolean {
val currentNightMode = resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK
return currentNightMode == Configuration.UI_MODE_NIGHT_YES
}