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[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?
|
||||
val usingApp = pkgName == "com.zhiliaoapp.musically"
|
||||
|| pkgName == "com.aliucord"
|
||||
|| pkgName == "app.revanced.android.youtube"
|
||||
|
||||
|
||||
val attempting = (attemptingUninstall
|
||||
|| attemptingDisableService
|
||||
|| attemptingForceStop
|
||||
|| safetyCenter
|
||||
|| usingApp)
|
||||
|
||||
if ((isLate || !autoDate) && attempting) {
|
||||
|
|
Loading…
Reference in New Issue