diff --git a/app/src/main/java/gm/tieba/tabswitch/hooker/auto/NotificationDetect.java b/app/src/main/java/gm/tieba/tabswitch/hooker/auto/NotificationDetect.java index 4fc71fb2..1c37f8ff 100644 --- a/app/src/main/java/gm/tieba/tabswitch/hooker/auto/NotificationDetect.java +++ b/app/src/main/java/gm/tieba/tabswitch/hooker/auto/NotificationDetect.java @@ -1,7 +1,5 @@ package gm.tieba.tabswitch.hooker.auto; -import android.app.NotificationManager; - import androidx.annotation.NonNull; import de.robv.android.xposed.XC_MethodReplacement; @@ -25,10 +23,10 @@ public void hook() throws Throwable { XC_MethodReplacement.returnConstant(true) ); XposedHelpers.findAndHookMethod( - "android.app.NotificationChannel", + "com.baidu.tieba.push.PushSceneGroup", sClassLoader, - "getImportance", - XC_MethodReplacement.returnConstant(NotificationManager.IMPORTANCE_DEFAULT) + "getLimit", + XC_MethodReplacement.returnConstant(0) ); } }