Skip to content

Commit 8b2e66b

Browse files
authored
Merge pull request #1864 from Caagr98/patch-1
Make always-expanded notifications un-expandable
2 parents 9909e46 + f3b99b5 commit 8b2e66b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/ceco/oreo/gravitybox/ModStatusBar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,11 +875,11 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
875875

876876
// Expanded notifications
877877
try {
878-
XposedHelpers.findAndHookMethod(expandableNotifRowClass, "isUserExpanded", new XC_MethodHook() {
878+
XposedHelpers.findAndHookMethod(expandableNotifRowClass, "setSystemExpanded", boolean.class, new XC_MethodHook() {
879879
@Override
880880
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
881881
if (mNotifExpandAll) {
882-
param.setResult(true);
882+
param.args[0] = true;
883883
}
884884
}
885885
});

0 commit comments

Comments
 (0)