feat: auto drivers update on app open and roll back if a new pair never starts a session (#972)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-16 16:17:44 -04:00
1 parent 4b2537a36b
commit 602a6fd734
8 files changed
+228 -23

No files matched your search

@@ -332,7 +332,7 @@ object AutoComponents {
caps.hasCapability(android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED)
}
private fun constrained(context: Context): Boolean {
fun constrained(context: Context): Boolean {
val power = context.getSystemService(PowerManager::class.java)
if (power?.isPowerSaveMode == true) return true
if (Build.VERSION.SDK_INT >= 29 && (power?.currentThermalStatus ?: 0) >= PowerManager.THERMAL_STATUS_MODERATE) return true