From b944d2db4c24f5586de43530aefdc1207bb26827 Mon Sep 17 00:00:00 2001 From: awoisoak Date: Fri, 4 Jun 2021 14:04:19 +0900 Subject: [PATCH] Fix Samsung component This opens the main Battery Settings com.samsung.android.sm.battery.ui.BatteryActivity so we should only use it if we can't open the specific Sleeping Apps settings with: com.samsung.android.sm.battery.ui.usage.CheckableAppListActivity --- .../com/judemanutd/autostarter/AutoStartPermissionHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autostarter/src/main/java/com/judemanutd/autostarter/AutoStartPermissionHelper.kt b/autostarter/src/main/java/com/judemanutd/autostarter/AutoStartPermissionHelper.kt index c2529ce..a4c3db1 100644 --- a/autostarter/src/main/java/com/judemanutd/autostarter/AutoStartPermissionHelper.kt +++ b/autostarter/src/main/java/com/judemanutd/autostarter/AutoStartPermissionHelper.kt @@ -87,7 +87,7 @@ class AutoStartPermissionHelper private constructor() { private val PACKAGE_SAMSUNG_MAIN = "com.samsung.android.lool" private val PACKAGE_SAMSUNG_COMPONENT = "com.samsung.android.sm.ui.battery.BatteryActivity" private val PACKAGE_SAMSUNG_COMPONENT_2 = "com.samsung.android.sm.battery.ui.usage.CheckableAppListActivity" - private val PACKAGE_SAMSUNG_COMPONENT_3 = "com.samsung.android.sm.battery.ui.usage.CheckableAppListActivity" + private val PACKAGE_SAMSUNG_COMPONENT_3 = "com.samsung.android.sm.battery.ui.BatteryActivity" /*** * One plus