From ddff7888bf7e754d12fb5fc85a58f3012f456490 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 05 六月 2021 17:26:03 +0800 Subject: [PATCH] 特价完善 --- app/src/main/java/com/tejia/lijin/app/ui/mine/MyPlayerListActivity.java | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/tejia/lijin/app/ui/mine/MyPlayerListActivity.java b/app/src/main/java/com/tejia/lijin/app/ui/mine/MyPlayerListActivity.java index 32e379d..1c34c17 100644 --- a/app/src/main/java/com/tejia/lijin/app/ui/mine/MyPlayerListActivity.java +++ b/app/src/main/java/com/tejia/lijin/app/ui/mine/MyPlayerListActivity.java @@ -24,6 +24,7 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; +import com.tejia.lijin.app.ShoppingApplication; import com.wpc.library.content.ConnectivityChangeHelper; import com.wpc.library.dialog.dateselect.CustomDatePicker; import com.wpc.library.dialog.dateselect.DateFormatUtils; @@ -181,8 +182,6 @@ ll_request_failture = findViewById(R.id.ll_request_failture); tv_no_data_hint = findViewById(R.id.tv_no_data_hint); iv_no_data = findViewById(R.id.iv_no_data); - tv_no_data_hint.setText("蹇幓瀵绘壘浣犵殑绮変笣鍚"); - iv_no_data.setImageDrawable(getResources().getDrawable(R.drawable.ic_no_friends)); findViewById(R.id.tv_net_setting).setOnClickListener(this); findViewById(R.id.tv_refresh).setOnClickListener(this); mChangeHelper = new ConnectivityChangeHelper(this, @@ -223,7 +222,7 @@ page++; isLoad = false; iv_loading.setVisibility(View.VISIBLE); - tv_loading.setText("姝e湪鍔犺浇鏇村鏁版嵁"); + tv_loading.setText(getResources().getString(R.string.loading_more_text)); getMyPlayer(); } } @@ -245,8 +244,7 @@ * 闃熷憳-缁熻鏁伴噺+涓婄骇 */ private void getcountMyTeam() { - String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", ""); - ShoppingApi.getCountMyTeam(this, uid, new BasicTextHttpResponseHandler() { + ShoppingApi.getCountMyTeam(this, UserUtil.getUid(ShoppingApplication.application), new BasicTextHttpResponseHandler() { @Override public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { if (jsonObject.optInt("code") == 0) { @@ -301,8 +299,7 @@ private void getMyPlayer() { // String uid = "535776"; - String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", ""); - ShoppingApi.getMyTeamV2(this, uid, page, null, Integer.parseInt(type), null, new BasicTextHttpResponseHandler() { + ShoppingApi.getMyTeamV2(this, UserUtil.getUid(ShoppingApplication.application), page, null, Integer.parseInt(type), null, new BasicTextHttpResponseHandler() { @Override public void onStart() { super.onStart(); -- Gitblit v1.8.0