|
@@ -501,37 +501,37 @@ public class NewHomeFragmentV2 extends BaseMVPFragment<FgNewHomeV2LayoutBinding,
|
|
|
return;
|
|
|
}
|
|
|
//推荐曲目
|
|
|
- if (homeHotMusicSheetBean.topMusicSheet != null && homeHotMusicSheetBean.topMusicSheet.size() > 0) {
|
|
|
- mViewBinding.clRecommendTrack.setVisibility(View.VISIBLE);
|
|
|
- ArrayList<HomeHotMusicSheetItemBean> itemBeans = formatMusicSheetData(homeHotMusicSheetBean.topMusicSheet);
|
|
|
- if (mRecommendAdapter != null) {
|
|
|
- mRecommendAdapter.setNewInstance(itemBeans);
|
|
|
- }
|
|
|
- } else {
|
|
|
- mViewBinding.clRecommendTrack.setVisibility(View.GONE);
|
|
|
- }
|
|
|
+// if (homeHotMusicSheetBean.topMusicSheet != null && homeHotMusicSheetBean.topMusicSheet.size() > 0) {
|
|
|
+// mViewBinding.clRecommendTrack.setVisibility(View.VISIBLE);
|
|
|
+// ArrayList<HomeHotMusicSheetItemBean> itemBeans = formatMusicSheetData(homeHotMusicSheetBean.topMusicSheet);
|
|
|
+// if (mRecommendAdapter != null) {
|
|
|
+// mRecommendAdapter.setNewInstance(itemBeans);
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// mViewBinding.clRecommendTrack.setVisibility(View.GONE);
|
|
|
+// }
|
|
|
|
|
|
//最新曲目
|
|
|
- if (homeHotMusicSheetBean.newMusicSheet != null && homeHotMusicSheetBean.newMusicSheet.size() > 0) {
|
|
|
- mViewBinding.clLatestTrack.setVisibility(View.VISIBLE);
|
|
|
- ArrayList<HomeHotMusicSheetItemBean> itemBeans = formatMusicSheetData(homeHotMusicSheetBean.newMusicSheet);
|
|
|
- if (mLatestAdapter != null) {
|
|
|
- mLatestAdapter.setNewInstance(itemBeans);
|
|
|
- }
|
|
|
- } else {
|
|
|
- mViewBinding.clLatestTrack.setVisibility(View.GONE);
|
|
|
- }
|
|
|
+// if (homeHotMusicSheetBean.newMusicSheet != null && homeHotMusicSheetBean.newMusicSheet.size() > 0) {
|
|
|
+// mViewBinding.clLatestTrack.setVisibility(View.VISIBLE);
|
|
|
+// ArrayList<HomeHotMusicSheetItemBean> itemBeans = formatMusicSheetData(homeHotMusicSheetBean.newMusicSheet);
|
|
|
+// if (mLatestAdapter != null) {
|
|
|
+// mLatestAdapter.setNewInstance(itemBeans);
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// mViewBinding.clLatestTrack.setVisibility(View.GONE);
|
|
|
+// }
|
|
|
|
|
|
//最热曲目
|
|
|
- if (homeHotMusicSheetBean.hotMusicSheet != null && homeHotMusicSheetBean.hotMusicSheet.size() > 0) {
|
|
|
- mViewBinding.clHotTrack.setVisibility(View.VISIBLE);
|
|
|
- ArrayList<HomeHotMusicSheetItemBean> itemBeans = formatMusicSheetData(homeHotMusicSheetBean.hotMusicSheet);
|
|
|
- if (mHomeHotMusicSheetAdapter != null) {
|
|
|
- mHomeHotMusicSheetAdapter.setNewInstance(itemBeans);
|
|
|
- }
|
|
|
- } else {
|
|
|
- mViewBinding.clHotTrack.setVisibility(View.GONE);
|
|
|
- }
|
|
|
+// if (homeHotMusicSheetBean.hotMusicSheet != null && homeHotMusicSheetBean.hotMusicSheet.size() > 0) {
|
|
|
+// mViewBinding.clHotTrack.setVisibility(View.VISIBLE);
|
|
|
+// ArrayList<HomeHotMusicSheetItemBean> itemBeans = formatMusicSheetData(homeHotMusicSheetBean.hotMusicSheet);
|
|
|
+// if (mHomeHotMusicSheetAdapter != null) {
|
|
|
+// mHomeHotMusicSheetAdapter.setNewInstance(itemBeans);
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// mViewBinding.clHotTrack.setVisibility(View.GONE);
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
private ArrayList<HomeHotMusicSheetItemBean> formatMusicSheetData(List<HomeHotMusicSheetBean.MusicSheetBean> rows) {
|
|
@@ -769,6 +769,18 @@ public class NewHomeFragmentV2 extends BaseMVPFragment<FgNewHomeV2LayoutBinding,
|
|
|
selectSubject();
|
|
|
return;
|
|
|
}
|
|
|
+ if (id == R.id.iv_recommend_music_song) {
|
|
|
+ WebStartHelper.goRecommendMusicSong();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (id == R.id.iv_hot_music_song) {
|
|
|
+ WebStartHelper.goHotMusicSong();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (id == R.id.iv_new_music_song) {
|
|
|
+ WebStartHelper.goLastNewMusicSong();
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void showRecommendMenuDialog() {
|
|
@@ -833,7 +845,7 @@ public class NewHomeFragmentV2 extends BaseMVPFragment<FgNewHomeV2LayoutBinding,
|
|
|
private void refreshMusicData() {
|
|
|
//热门专辑
|
|
|
presenter.getHotAlbumList(currentSubjectId);
|
|
|
- //热门曲目
|
|
|
- presenter.getHotMusicSheetList(currentSubjectId);
|
|
|
+ //热门曲目 20241231-首页改版去掉接口请求
|
|
|
+ //presenter.getHotMusicSheetList(currentSubjectId);
|
|
|
}
|
|
|
}
|