From 11dc08577a7176eefed8f0dcac8e07673bb11cdc Mon Sep 17 00:00:00 2001 From: Tahsin Masrur Date: Thu, 14 Jan 2021 00:54:46 +0600 Subject: [PATCH] Add Xiaomi sub-brand Poco --- .../com/judemanutd/autostarter/AutoStartPermissionHelper.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autostarter/src/main/java/com/judemanutd/autostarter/AutoStartPermissionHelper.kt b/autostarter/src/main/java/com/judemanutd/autostarter/AutoStartPermissionHelper.kt index 8726cea..b6866aa 100644 --- a/autostarter/src/main/java/com/judemanutd/autostarter/AutoStartPermissionHelper.kt +++ b/autostarter/src/main/java/com/judemanutd/autostarter/AutoStartPermissionHelper.kt @@ -13,6 +13,7 @@ class AutoStartPermissionHelper private constructor() { * Xiaomi */ private val BRAND_XIAOMI = "xiaomi" + private val BRAND_XIAOMI_POCO = "poco" private val BRAND_XIAOMI_REDMI = "redmi" private val PACKAGE_XIAOMI_MAIN = "com.miui.securitycenter" private val PACKAGE_XIAOMI_COMPONENT = "com.miui.permcenter.autostart.AutoStartManagementActivity" @@ -99,7 +100,7 @@ class AutoStartPermissionHelper private constructor() { BRAND_ASUS -> return autoStartAsus(context) - BRAND_XIAOMI, BRAND_XIAOMI_REDMI -> return autoStartXiaomi(context) + BRAND_XIAOMI, BRAND_XIAOMI_POCO, BRAND_XIAOMI_REDMI -> return autoStartXiaomi(context) BRAND_LETV -> return autoStartLetv(context) @@ -348,4 +349,4 @@ class AutoStartPermissionHelper private constructor() { } } -} \ No newline at end of file +}