Skip to content

Commit f3b99b5

Browse files
author
Caagr98
authored
Make always-expanded notifications un-expandable
Having notifications always expanded is nice, but it would be even nicer if it was possible to un-expand them sometimes. (Would be even better if they didn't restore to expanded when the drawer is hidden, but I haven't figured out how to do that.)
1 parent 9909e46 commit f3b99b5

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)