remove another incomplete safety center check
This commit is contained in:
parent
ee11d7ecd6
commit
bf6e2f60cb
|
@ -102,20 +102,14 @@ class DigicaService : AccessibilityService() {
|
||||||
&& event.text.size == 3
|
&& event.text.size == 3
|
||||||
&& event.text[0].contains(serviceLabel)
|
&& event.text[0].contains(serviceLabel)
|
||||||
|
|
||||||
// Is user in safety center? (can disable service)
|
|
||||||
val safetyCenter = pkgName == "com.google.android.permissioncontroller"
|
|
||||||
&& className == "android.widget.FrameLayout"
|
|
||||||
|
|
||||||
// Is user trying to go on a banned app?
|
// Is user trying to go on a banned app?
|
||||||
val usingApp = pkgName == "com.zhiliaoapp.musically"
|
val usingApp = pkgName == "com.zhiliaoapp.musically"
|
||||||
|| pkgName == "com.aliucord"
|
|| pkgName == "com.aliucord"
|
||||||
|| pkgName == "app.revanced.android.youtube"
|
|| pkgName == "app.revanced.android.youtube"
|
||||||
|
|
||||||
|
|
||||||
val attempting = (attemptingUninstall
|
val attempting = (attemptingUninstall
|
||||||
|| attemptingDisableService
|
|| attemptingDisableService
|
||||||
|| attemptingForceStop
|
|| attemptingForceStop
|
||||||
|| safetyCenter
|
|
||||||
|| usingApp)
|
|| usingApp)
|
||||||
|
|
||||||
if ((isLate || !autoDate) && attempting) {
|
if ((isLate || !autoDate) && attempting) {
|
||||||
|
|
Loading…
Reference in New Issue