Skip to content

Commit 2e273ed

Browse files
committed
update packageManager
1 parent 2234a8d commit 2e273ed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PluginCore/src/com/plugin/core/systemservice/AndroidAppIPackageManager.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,12 @@ private static Bundle getMeta(HashMap<String, String> map) {
278278
Iterator<Map.Entry<String, String>> entryIterator = map.entrySet().iterator();
279279
while (entryIterator.hasNext()) {
280280
Map.Entry<String, String> item = entryIterator.next();
281-
meta.putString(item.getKey(), item.getValue());
281+
//TODO 这里的类型还有很多其他情况
282+
if (TextUtils.isDigitsOnly(item.getValue())) {
283+
meta.putInt(item.getKey(), Integer.valueOf(item.getValue()));
284+
} else {
285+
meta.putString(item.getKey(), item.getValue());
286+
}
282287
}
283288
}
284289
return meta;

0 commit comments

Comments
 (0)