Skip to content

Commit

Permalink
Fix QS theme crash on android 14 QPR2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmud0808 committed Apr 5, 2024
1 parent 1156ba3 commit 764bdde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
// Power button
Object power = getObjectField(param.thisObject, "power");
setObjectField(power, "iconTint", colorActive[0]);
setObjectField(power, "backgroundColor", colorActiveAlpha[0]);
// setObjectField(power, "backgroundColor", colorActiveAlpha[0]);

// Settings button
Object settings = getObjectField(param.thisObject, "settings");
setObjectField(settings, "backgroundColor", colorInactiveAlpha[0]);
// setObjectField(settings, "backgroundColor", colorInactiveAlpha[0]);

// We must use the classes defined in the apk. Using our own will fail.
Class<?> StateFlowImplClass = findClass("kotlinx.coroutines.flow.StateFlowImpl", loadPackageParam.classLoader);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
// Settings button
Object settings = getObjectField(param.thisObject, "settings");
setObjectField(settings, "iconTint", Color.BLACK);
setObjectField(settings, "backgroundColor", colorInactive);
// setObjectField(settings, "backgroundColor", colorInactive);

// We must use the classes defined in the apk. Using our own will fail.
Class<?> StateFlowImplClass = findClass("kotlinx.coroutines.flow.StateFlowImpl", loadPackageParam.classLoader);
Expand Down

0 comments on commit 764bdde

Please sign in to comment.