| | |
| | | import android.graphics.drawable.AnimationDrawable; |
| | | import android.os.Bundle; |
| | | import android.provider.Settings; |
| | | |
| | | import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; |
| | | import androidx.recyclerview.widget.LinearLayoutManager; |
| | | import androidx.recyclerview.widget.RecyclerView; |
| | | |
| | | import android.view.LayoutInflater; |
| | | import android.view.View; |
| | | import android.widget.ImageView; |
| | |
| | | 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.downutil.StringUtils; |
| | | import com.wpc.library.content.ConnectivityChangeHelper; |
| | | import com.wpc.library.okhttp.OkHttpUtils; |
| | |
| | | adapter = new UserMessageAdapter(this, mList,new IDeleteMessageListener() { |
| | | @Override |
| | | public void delete(final UserMessage msg) { |
| | | if (LoginAndInviteStatusUtil.acessNext(getApplicationContext(), UserUtil.getUid(getApplicationContext()) + "", true)) { |
| | | ShoppingApi.deleteMsg(getApplicationContext(), UserUtil.getUid(getApplicationContext()) + "", msg.getType(), msg.getId(), new BasicTextHttpResponseHandler() { |
| | | if (LoginAndInviteStatusUtil.acessNext(getApplicationContext(), UserUtil.getUid(getApplicationContext()), true)) { |
| | | ShoppingApi.deleteMsg(getApplicationContext(), UserUtil.getUid(getApplicationContext()), msg.getType(), msg.getId(), new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | super.onSuccessPerfect(statusCode, headers, jsonObject); |
| | |
| | | * |
| | | */ |
| | | private void getMsgList() { |
| | | String uid = getSharedPreferences("user", MODE_PRIVATE) |
| | | .getString("uid", ""); |
| | | String type = getIntent().getStringExtra("type"); |
| | | ShoppingApi.getMsgList(this, uid, mPage + "", type, new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.getMsgList(this, UserUtil.getUid(ShoppingApplication.application), mPage + "", type, new BasicTextHttpResponseHandler() { |
| | | |
| | | @Override |
| | | public void onStart() { |