Skip to content

Commit

Permalink
Fix unlocking themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipppppppppp committed Mar 11, 2024
1 parent b5f0acd commit a8b0a41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/main/java/io/github/chipppppppppp/lime/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,15 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
param.thisObject.getClass().getDeclaredField("a").set(param.thisObject, true);
}
});

hookTarget = lparam.classLoader.loadClass("nc2.j");
XposedBridge.hookAllMethods(hookTarget, "write", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
Field keyName = param.thisObject.getClass().getDeclaredField("a");
if (keyName.get(param.thisObject).toString().equals("theme.currentid")) keyName.set(param.thisObject, null);
}
});
}

if (limeOptions.outputCommunication.checked) {
Expand Down

0 comments on commit a8b0a41

Please sign in to comment.