فهرست منبع

修复部分bug

Pq 3 سال پیش
والد
کامیت
61c0cf994c

+ 3 - 1
teacher/src/main/java/com/cooleshow/teacher/ui/main/CourseTableFragment.kt

@@ -54,6 +54,7 @@ class CourseTableFragment :
     private lateinit var emptyText: TextView
     private lateinit var emptyIcon: ImageView
     private var day: Int = -1;
+    private var targetChangeCourseId: String = ""
 
     override fun getLayoutView(): FragmentCourseTableLayoutBinding {
         return FragmentCourseTableLayoutBinding.inflate(layoutInflater)
@@ -348,7 +349,7 @@ class CourseTableFragment :
             pvCourseTime = TimePickerBuilder(
                 requireContext(),
                 OnTimeSelectListener { date: Date?, v: View? ->  //选中事件回调
-                    presenter.updateCourseTime(date, courseId);
+                    presenter.updateCourseTime(date, targetChangeCourseId);
                 }).setLayoutRes(com.cooleshow.base.R.layout.pickerview_default_layout,
                 CustomListener { v -> //自定义布局中的控件初始化及事件处理
                     val tvSubmit =
@@ -375,6 +376,7 @@ class CourseTableFragment :
         pvCourseTime.setDate(calendar)
         if (!pvCourseTime.isShowing) {
             pvCourseTime.show()
+            this.targetChangeCourseId = courseId;
         }
     }
 

+ 0 - 2
teacher/src/main/java/com/cooleshow/teacher/ui/mine/PersonalSettingActivity.java

@@ -338,9 +338,7 @@ public class PersonalSettingActivity extends BaseMVPActivity<ActivityPersonalSet
                 viewBinding.tvCertificationStatus.setText("已认证");
             } else if (requestCode == REQUEST_CODE_CAMERA) {
                 if (!TextUtils.isEmpty(imagePath)) {
-                    showLoading();
                     presenter.upLoadImage(PersonalSettingActivity.this, imagePath);
-
                 }
 
             } else if (requestCode == REQUEST_CODE_LOCAL) {