| | |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.GsonBuilder; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.tejia.lijin.app.ShoppingApplication; |
| | | import com.tejia.lijin.app.util.user.UserUtil; |
| | | import com.wpc.library.content.ConnectivityChangeHelper; |
| | | import com.wpc.library.okhttp.OkHttpUtils; |
| | | import com.wpc.library.util.NetUtils; |
| | |
| | | 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); |
| | | |
| | |
| | | * |
| | | */ |
| | | private void getSystemMessage() { |
| | | String uid = getSharedPreferences("user", MODE_PRIVATE) |
| | | .getString("uid", ""); |
| | | ShoppingApi.getSystemMsgList(this, uid, mPage + "", new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.getSystemMsgList(this, UserUtil.getUid(ShoppingApplication.application), mPage + "", new BasicTextHttpResponseHandler() { |
| | | |
| | | @Override |
| | | public void onStart() { |