From fd0097a37e24c771d5ad271135e48e8f52e325e0 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 21 十二月 2021 16:59:55 +0800 Subject: [PATCH] 3.10.9 --- BuWanVideo/src/com/weikou/beibeivideo/ui/category/fragment/StarFragment.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/category/fragment/StarFragment.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/category/fragment/StarFragment.java index 2ee44bc..a457df3 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/ui/category/fragment/StarFragment.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/category/fragment/StarFragment.java @@ -19,6 +19,7 @@ import com.weikou.beibeivideo.ui.category.NewStarAdapter; import com.weikou.beibeivideo.ui.category.bean.HotStar; import com.weikou.beibeivideo.R; +import com.weikou.beibeivideo.util.JsonUtil; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; @@ -53,10 +54,8 @@ Header[] headers, JSONObject jsonObject) throws Exception { if (jsonObject.getBoolean("IsPost")) { - Gson gson = new GsonBuilder().setFieldNamingPolicy( - FieldNamingPolicy.UPPER_CAMEL_CASE) - .create(); - List<HotStar> hotStarList = gson.fromJson( + + List<HotStar> hotStarList = JsonUtil.videoGson.fromJson( jsonObject.getJSONObject("Data") .getJSONArray("data").toString(), new TypeToken<List<HotStar>>() { -- Gitblit v1.8.0