File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
projects/sdk/core/runtime/src/main/java/com/tencent/shadow/core/runtime Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2929import android .content .res .Configuration ;
3030import android .os .Build ;
3131
32- import java .lang .ref .WeakReference ;
3332import java .util .HashMap ;
3433import java .util .Map ;
35- import java .util .WeakHashMap ;
3634
3735/**
3836 * 用于在plugin-loader中调用假的Application方法的接口
@@ -88,7 +86,11 @@ public void onCreate() {
8886 intentFilter .addAction (action );
8987 }
9088 }
91- registerReceiver (receiver , intentFilter );
89+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ) {
90+ registerReceiver (receiver , intentFilter , RECEIVER_EXPORTED );
91+ } else {
92+ registerReceiver (receiver , intentFilter );
93+ }
9294 } catch (Exception e ) {
9395 throw new RuntimeException (e );
9496 }
You can’t perform that action at this time.
0 commit comments