调整弱网下,礼物加载动画失败后取消
This commit is contained in:
parent
1a8e7ecae9
commit
310fe91a19
@ -204,7 +204,10 @@ public class LiveGiftAdapter extends RecyclerView.Adapter<LiveGiftAdapter.Vh> {
|
|||||||
if(bean==null){
|
if(bean==null){
|
||||||
ToastUtil.show(WordUtil.getString(R.string.load_failure_2));
|
ToastUtil.show(WordUtil.getString(R.string.load_failure_2));
|
||||||
mLoading.setImageResource(R.mipmap.icon_download_gift);
|
mLoading.setImageResource(R.mipmap.icon_download_gift);
|
||||||
mLoading.getAnimation().cancel();
|
animation.setRepeatCount(0);
|
||||||
|
animation.setDuration(0);
|
||||||
|
animation.cancel();
|
||||||
|
mLoading.setAnimation(animation);
|
||||||
}else {
|
}else {
|
||||||
mLoadingLayout.setVisibility(View.GONE);
|
mLoadingLayout.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user