Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: improve NotificationDetect
Browse files Browse the repository at this point in the history
  • Loading branch information
mkx173 committed Mar 19, 2024
1 parent 879c937 commit 77daec6
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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)
);
}
}

0 comments on commit 77daec6

Please sign in to comment.