[core] Fix initialization order (#1205)

This commit is contained in:
LoveSy 2021-10-01 17:38:38 +08:00 committed by GitHub
parent 5809e74f44
commit 5ad5d3f56a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -86,12 +86,13 @@ public class LSPManagerService extends ILSPManagerService.Stub {
public static final int CHANNEL_IMP = NotificationManager.IMPORTANCE_HIGH;
private static final HandlerThread worker = new HandlerThread("manager worker");
private static final Handler workerHandler = new Handler(worker.getLooper());
private static final Handler workerHandler;
private static Intent managerIntent = null;
static {
worker.start();
workerHandler = new Handler(worker.getLooper());
}
public class ManagerGuard implements IBinder.DeathRecipient {