Skip to content

Commit aacae21

Browse files
committed
Fix bug in CustomView
Signed-off-by: Dev4Mod <[email protected]>
1 parent a01425c commit aacae21

File tree

1 file changed

+2
-1
lines changed
  • app/src/main/java/com/wmods/wppenhacer/xposed/features/customization

1 file changed

+2
-1
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/features/customization/CustomView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ public void doHook() throws Throwable {
111111
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
112112
var activity = (Activity) param.thisObject;
113113
View rootView = activity.getWindow().getDecorView().getRootView();
114-
rootView.getViewTreeObserver().addOnGlobalLayoutListener(() -> CompletableFuture.runAsync(() -> registerCssRules(activity, (ViewGroup) rootView, sheet)));
114+
rootView.getViewTreeObserver().addOnGlobalLayoutListener(() -> CompletableFuture.runAsync(() -> registerCssRules(activity, (ViewGroup) rootView, sheet), Utils.getExecutor()));
115+
115116

116117
}
117118
});

0 commit comments

Comments
 (0)