mirror of
https://github.com/sifacaii/VlcJellyfin
synced 2025-06-03 00:58:06 -04:00
优化详情页
This commit is contained in:
parent
29d62bf95f
commit
ad1da52e44
@ -67,7 +67,8 @@ public class Utils {
|
||||
|
||||
public static <T> T jsonToClass(String jsonstr, Type tClass) {
|
||||
if (jsonstr != null && jsonstr.length() > 0) {
|
||||
Gson gson = new GsonBuilder().registerTypeAdapterFactory(new NullStringToEmptyAdapterFactory()).create();
|
||||
//Gson gson = new GsonBuilder().registerTypeAdapterFactory(new NullStringToEmptyAdapterFactory()).create();
|
||||
Gson gson = new Gson();
|
||||
return gson.fromJson(jsonstr, tClass);
|
||||
}
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user