diff --git a/app/src/main/java/me/phh/treble/app/EntryService.kt b/app/src/main/java/me/phh/treble/app/EntryService.kt index 007019b0c354..3afb9912b535 100644 --- a/app/src/main/java/me/phh/treble/app/EntryService.kt +++ b/app/src/main/java/me/phh/treble/app/EntryService.kt @@ -33,7 +33,6 @@ class EntryService: Service() { tryC { Lenovo.startup(this) } tryC { OnePlus.startup(this) } tryC { Oppo.startup(this) } - tryC { OverlayPicker.startup(this) } tryC { Doze.startup(this) } tryC { Huawei.startup(this) } tryC { Misc.startup(this) } @@ -42,6 +41,7 @@ class EntryService: Service() { tryC { Xiaomi.startup(this) } tryC { Qualcomm.startup(this) } tryC { Vsmart.startup(this) } + tryC { OverlayPicker.startup(this) } } } diff --git a/app/src/main/java/me/phh/treble/app/OverlayPicker.kt b/app/src/main/java/me/phh/treble/app/OverlayPicker.kt index 855fe406ceec..c70f3202f773 100755 --- a/app/src/main/java/me/phh/treble/app/OverlayPicker.kt +++ b/app/src/main/java/me/phh/treble/app/OverlayPicker.kt @@ -47,6 +47,16 @@ object OverlayPicker: EntryStartup { } } + fun handleVsmart(ctxt: Context) { + if(vendorFp == null) return + + if(vendorFp.matches(Regex("vsmart/V620A_open.*"))) { + val sp = PreferenceManager.getDefaultSharedPreferences(ctxt) + if(sp.getString(MiscSettings.roundedCorners, "-1").toInt() == -1) + sp.edit().putString(MiscSettings.roundedCorners, "12").commit() + } + } + fun handleXiaomi(ctxt: Context) { if(vendorFp == null) return @@ -62,6 +72,7 @@ object OverlayPicker: EntryStartup { enableLte(ctxt) handleNokia(ctxt) handleSamsung(ctxt) + handleVsmart(ctxt) handleXiaomi(ctxt) setOverlayEnabled("me.phh.treble.overlay.systemui.falselocks", true)