You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/sdk/core/loader/src/main/kotlin/com/tencent/shadow/core/loader/managers/PluginContentProviderManager.kt
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -138,10 +138,42 @@ class PluginContentProviderManager() : UriConverter.UriParseDelegate {
138
138
139
139
funconvert2PluginUri(uri:Uri): Uri {
140
140
val containerAuthority:String?= uri.authority
141
-
if (!providerAuthorityMap.values.contains(containerAuthority)) {
141
+
val matchAuthorityMap = providerAuthorityMap.filter { it.value == containerAuthority }
"content://$containerAuthority" to "content://$containerAuthority",
59
+
"content://$containerAuthority/" to if (same) "content://$pluginAuthority/"else"content://",
60
+
"content://$containerAuthority/path" to if (same) "content://$pluginAuthority/path"else"content://path",
61
+
"content://$containerAuthority/$pluginAuthority" to "content://$pluginAuthority",
62
+
"content://$containerAuthority/$pluginAuthority/" to "content://$pluginAuthority/",
63
+
"content://$containerAuthority/$pluginAuthority/path" to "content://$pluginAuthority/path",
64
+
"content://$containerAuthority/$containerAuthority/$pluginAuthority" to "content://$pluginAuthority",
65
+
"content://$containerAuthority/$containerAuthority/$pluginAuthority/" to "content://$pluginAuthority/",
66
+
"content://$containerAuthority/$containerAuthority/$pluginAuthority/path" to "content://$pluginAuthority/path",
67
+
"content://$containerAuthority/$pluginAuthority/$containerAuthority" to if (same) "content://$pluginAuthority"else"content://$pluginAuthority/$containerAuthority",
68
+
"content://$containerAuthority/$pluginAuthority/$containerAuthority/" to if (same) "content://$pluginAuthority/"else"content://$pluginAuthority/$containerAuthority/",
69
+
"content://$containerAuthority/$pluginAuthority/$containerAuthority/path" to if (same) "content://$pluginAuthority/path"else"content://$pluginAuthority/$containerAuthority/path",
70
+
"content://$containerAuthority/$pluginAuthority/$containerAuthority/$pluginAuthority" to if (same) "content://$pluginAuthority"else"content://$pluginAuthority/$containerAuthority/$pluginAuthority",
71
+
"content://$containerAuthority/$pluginAuthority/$containerAuthority/$pluginAuthority/" to if (same) "content://$pluginAuthority/"else"content://$pluginAuthority/$containerAuthority/$pluginAuthority/",
72
+
"content://$containerAuthority/$pluginAuthority/$containerAuthority/$pluginAuthority/path" to if (same) "content://$pluginAuthority/path"else"content://$pluginAuthority/$containerAuthority/$pluginAuthority/path",
73
+
"content://$containerAuthority/$pluginAuthority/path/$containerAuthority" to "content://$pluginAuthority/path/$containerAuthority",
74
+
"content://$containerAuthority/$pluginAuthority/path/$containerAuthority/" to "content://$pluginAuthority/path/$containerAuthority/",
75
+
"content://$containerAuthority/$pluginAuthority/path/$containerAuthority/file" to "content://$pluginAuthority/path/$containerAuthority/file",
76
+
"content://$containerAuthority/$pluginAuthority/path/$pluginAuthority" to "content://$pluginAuthority/path/$pluginAuthority",
77
+
"content://$containerAuthority/$pluginAuthority/path/$pluginAuthority/" to "content://$pluginAuthority/path/$pluginAuthority/",
78
+
"content://$containerAuthority/$pluginAuthority/path/$pluginAuthority/file" to "content://$pluginAuthority/path/$pluginAuthority/file",
79
+
"content://$containerAuthority/$pluginAuthority/path/$containerAuthority/$pluginAuthority" to "content://$pluginAuthority/path/$containerAuthority/$pluginAuthority",
80
+
"content://$containerAuthority/$pluginAuthority/path/$containerAuthority/$pluginAuthority/" to "content://$pluginAuthority/path/$containerAuthority/$pluginAuthority/",
81
+
"content://$containerAuthority/$pluginAuthority/path/$containerAuthority/$pluginAuthority/file" to "content://$pluginAuthority/path/$containerAuthority/$pluginAuthority/file",
82
+
"content://$containerAuthority/$pluginAuthority/path/$pluginAuthority/$containerAuthority" to "content://$pluginAuthority/path/$pluginAuthority/$containerAuthority",
83
+
"content://$containerAuthority/$pluginAuthority/path/$pluginAuthority/$containerAuthority/" to "content://$pluginAuthority/path/$pluginAuthority/$containerAuthority/",
84
+
"content://$containerAuthority/$pluginAuthority/path/$pluginAuthority/$containerAuthority/file" to "content://$pluginAuthority/path/$pluginAuthority/$containerAuthority/file"
0 commit comments