[core] Fix broadcast receiver after soft reboot (#739)

`sendToBridge` stucks the binder thread so that
`ActivityManagerService`'s receipent won't be called
This commit is contained in:
LoveSy 2021-06-10 06:53:53 +08:00 committed by GitHub
parent 547c512546
commit 9ccef6b794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class BridgeService {
bridgeService.unlinkToDeath(this, 0); bridgeService.unlinkToDeath(this, 0);
bridgeService = null; bridgeService = null;
listener.onSystemServerDied(); listener.onSystemServerDied();
sendToBridge(serviceBinder, true); new Thread(()-> sendToBridge(serviceBinder, true)).start();
} }
}; };