伤处图片增加配置
This commit is contained in:
@@ -26,11 +26,11 @@ public abstract class AbsShareInterface {
|
||||
|
||||
TwitterResultReceiver receiver = new TwitterResultReceiver();
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||
// Android 12 (API 33) 及以上版本
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { // API 33+
|
||||
// Android 13 (API 33) 及以上版本使用导出标志
|
||||
context.registerReceiver(receiver, filter, Context.RECEIVER_NOT_EXPORTED);
|
||||
} else {
|
||||
// Android 12 (API 33) 以下版本
|
||||
// Android 12 (API 32) 以下版本
|
||||
context.registerReceiver(receiver, filter);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user