Commit 86092840 by zhengnw@sobot.com

widget 1.2.0

parent 5fe7dc12
...@@ -132,12 +132,11 @@ public final class LiveEventBusCore { ...@@ -132,12 +132,11 @@ public final class LiveEventBusCore {
if (application != null) { if (application != null) {
IntentFilter intentFilter = new IntentFilter(); IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(IpcConst.ACTION); intentFilter.addAction(IpcConst.ACTION);
application.registerReceiver(receiver, intentFilter);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
application.registerReceiver(receiver, intentFilter, RECEIVER_EXPORTED); application.registerReceiver(receiver, intentFilter, RECEIVER_EXPORTED);
} }
// api <= 32
else { else {
// api <= 32
application.registerReceiver(receiver, intentFilter); application.registerReceiver(receiver, intentFilter);
} }
isRegisterReceiver = true; 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