|
@@ -15,6 +15,7 @@ import com.liaobo.im.bean.redpacket.RedPacketReceiveBean;
|
|
|
import com.liaobo.im.bean.redpacket.RedPacketSendBean;
|
|
|
import com.liaobo.im.bean.redpacket.RedSendRedItemEntry;
|
|
|
import com.liaobo.im.db.InternationalizationHelper;
|
|
|
+import com.liaobo.im.helper.DialogHelper;
|
|
|
import com.liaobo.im.ui.base.BaseActivity;
|
|
|
import com.liaobo.im.xuan.xuanhttplibrary.okhttp.HttpUtils;
|
|
|
import com.liaobo.im.xuan.xuanhttplibrary.okhttp.callback.BaseCallback;
|
|
@@ -163,6 +164,7 @@ public class RedListActivity extends BaseActivity {
|
|
|
}
|
|
|
|
|
|
private void loadAutoGetAssignRedReceiveList(int pageIndex) {
|
|
|
+ DialogHelper.showMessageProgressDialog(this,getString(R.string.please_wait));
|
|
|
HashMap<String, String> params = new HashMap<String, String>();
|
|
|
params.put("access_token", coreManager.getSelfStatus().accessToken);
|
|
|
params.put("pageIndex", pageIndex + "");
|
|
@@ -175,6 +177,7 @@ public class RedListActivity extends BaseActivity {
|
|
|
|
|
|
@Override
|
|
|
public void onResponse(ObjectResult<RedPacketReceiveBean> result) {
|
|
|
+ DialogHelper.dismissProgressDialog();
|
|
|
smartRefreshLayout.finishLoadMore();
|
|
|
smartRefreshLayout.finishRefresh();
|
|
|
|
|
@@ -194,6 +197,7 @@ public class RedListActivity extends BaseActivity {
|
|
|
|
|
|
@Override
|
|
|
public void onError(Call call, Exception e) {
|
|
|
+ DialogHelper.dismissProgressDialog();
|
|
|
smartRefreshLayout.finishLoadMore();
|
|
|
smartRefreshLayout.finishRefresh();
|
|
|
}
|