Skip to content

Commit

Permalink
Fix missing HandlerUtil.setMainHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Sep 15, 2023
1 parent 94e1e5a commit a2f25ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module/src/main/java/rikka/sui/server/SuiService.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import android.os.Binder;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.os.Parcel;
Expand Down Expand Up @@ -68,6 +69,7 @@
import rikka.shizuku.ShizukuApiConstants;
import rikka.shizuku.server.ClientRecord;
import rikka.shizuku.server.Service;
import rikka.shizuku.server.util.HandlerUtil;
import rikka.sui.model.AppInfo;
import rikka.sui.server.bridge.BridgeServiceClient;
import rikka.sui.util.Logger;
Expand Down Expand Up @@ -140,6 +142,8 @@ private int waitForPackage(String packageName, boolean forever) {
public SuiService() {
super();

HandlerUtil.setMainHandler(new Handler(Looper.getMainLooper()));

SuiService.instance = this;

configManager = getConfigManager();
Expand Down

0 comments on commit a2f25ed

Please sign in to comment.