Commit 86092840 by zhengnw@sobot.com

widget 1.2.0

parent 5fe7dc12
......@@ -132,12 +132,11 @@ public final class LiveEventBusCore {
if (application != null) {
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(IpcConst.ACTION);
application.registerReceiver(receiver, intentFilter);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
application.registerReceiver(receiver, intentFilter, RECEIVER_EXPORTED);
}
// api <= 32
else {
// api <= 32
application.registerReceiver(receiver, intentFilter);
}
isRegisterReceiver = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment