|
@@ -8,13 +8,16 @@ import android.widget.ImageView;
|
|
|
import android.widget.PopupWindow;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
+import com.alibaba.android.arouter.launcher.ARouter;
|
|
|
import com.bigkoo.pickerview.builder.TimePickerBuilder;
|
|
|
import com.bigkoo.pickerview.listener.CustomListener;
|
|
|
import com.bigkoo.pickerview.view.TimePickerView;
|
|
|
import com.chad.library.adapter.base.BaseQuickAdapter;
|
|
|
import com.chad.library.adapter.base.listener.OnItemClickListener;
|
|
|
import com.chad.library.adapter.base.listener.OnLoadMoreListener;
|
|
|
+import com.cooleshow.base.common.WebConstants;
|
|
|
import com.cooleshow.base.constanst.Constants;
|
|
|
+import com.cooleshow.base.router.RouterPath;
|
|
|
import com.cooleshow.base.ui.fragment.BaseMVPFragment;
|
|
|
import com.cooleshow.base.utils.LogUtils;
|
|
|
import com.cooleshow.base.utils.PopupUtil;
|
|
@@ -81,17 +84,19 @@ public class LiveCourseFragment extends BaseMVPFragment<FragmentLiveCourseLayout
|
|
|
@Override
|
|
|
public void refreshData() {
|
|
|
super.refreshData();
|
|
|
- reBuildFilter(currentSelectDate,currentCourseFilterStatus);
|
|
|
+ reBuildFilter(currentSelectDate, currentCourseFilterStatus);
|
|
|
isFirstLoad = false;
|
|
|
}
|
|
|
+
|
|
|
@Override
|
|
|
public void onResume() {
|
|
|
super.onResume();
|
|
|
- if(isFirstLoad){
|
|
|
+ if (isFirstLoad) {
|
|
|
isFirstLoad = false;
|
|
|
reBuildFilter(null, CourseConstants.COURSE_FILTER_ALL);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
private void buildDefaultCourseStatusFilterList() {
|
|
|
mCourseFilterStatusBeans = new ArrayList<>();
|
|
|
mCourseFilterStatusBeans.add(new CourseFilterStatusBean(CourseConstants.COURSE_FILTER_ALL, "全部"));
|
|
@@ -140,7 +145,13 @@ public class LiveCourseFragment extends BaseMVPFragment<FragmentLiveCourseLayout
|
|
|
});
|
|
|
mViewBinding.recyclerView.setLayoutManager(new LinearLayoutManager(requireContext()));
|
|
|
mViewBinding.recyclerView.setAdapter(mAdapter);
|
|
|
-
|
|
|
+ mAdapter.setOnItemClickListener((adapter, view, position) -> {
|
|
|
+ LiveCourseListBean.RowsBean item = (LiveCourseListBean.RowsBean) adapter.getItem(position);
|
|
|
+ ARouter.getInstance()
|
|
|
+ .build(RouterPath.WebCenter.ACTIVITY_HTML)
|
|
|
+ .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + item.courseGroupId)
|
|
|
+ .navigation();
|
|
|
+ });
|
|
|
buildDefaultCourseStatusFilterList();
|
|
|
}
|
|
|
|
|
@@ -256,6 +267,7 @@ public class LiveCourseFragment extends BaseMVPFragment<FragmentLiveCourseLayout
|
|
|
pvTime.show();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
if (v.getId() == R.id.tv_time) {
|