Browse Source

修改bug

Pq 3 years ago
parent
commit
8eb044be04

+ 1 - 5
student/src/main/java/com/cooleshow/student/adapter/HomeTeacherStyleAdapter.java

@@ -42,12 +42,8 @@ public class HomeTeacherStyleAdapter extends BaseQuickAdapter<HomeStyleBean.Rows
 
         if (item.liveing != null) {
             helper.setVisible(R.id.liveing_text, true);
-            helper.setGone(R.id.video_length, true);
         } else {
-            helper.setVisible(R.id.video_length, true);
-//            helper.setGone(R.id.liveing_text, true);
-//            long time = MediaUtils.extractDuration(getContext(), Build.VERSION.SDK_INT == Build.VERSION_CODES.Q, item.videoUrl);
-//            helper.setText(R.id.liveing_text,String.valueOf(time));
+            helper.setVisible(R.id.liveing_text, false);
         }
     }
 }