1:修改歌单列表出现删除完成后,页面没有刷新的问题
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package com.xscm.modulemain.activity.user.activity;
|
package com.xscm.modulemain.activity.user.activity;
|
||||||
|
|
||||||
|
import static android.view.View.GONE;
|
||||||
|
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
@@ -155,6 +157,14 @@ public class UserPlaylistActivity extends BaseMvpActivity<SingerVerificationPres
|
|||||||
mAdapter.notifyDataSetChanged();
|
mAdapter.notifyDataSetChanged();
|
||||||
// 更新歌单数量
|
// 更新歌单数量
|
||||||
mBinding.tvNum.setText("共" + s.getCount() + "首歌");
|
mBinding.tvNum.setText("共" + s.getCount() + "首歌");
|
||||||
|
}else {
|
||||||
|
if (page == 1) {
|
||||||
|
mSongPlaylistBean.clear();
|
||||||
|
}
|
||||||
|
mAdapter.notifyDataSetChanged();
|
||||||
|
if(mSongPlaylistBean.size()==0){
|
||||||
|
mBinding.tvNum.setText("共" + mSongPlaylistBean.size() + "首歌");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user