Skip to content

Commit

Permalink
Merge pull request #477 from RedrockMobile/GuoXR/bugfix
Browse files Browse the repository at this point in the history
🐛 修护课表事务 item 在长按扩展时如果触发展开中午或傍晚时间段导致崩溃
  • Loading branch information
985892345 authored Apr 26, 2024
2 parents f034a05 + 66eb6b7 commit dca5df0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
python-version: '3.9'

- name: Install python dependency
run: pip install beautifulsoup4
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
python-version: '3.9'

- name: Install python dependence
run: pip install beautifulsoup4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ abstract class AbstractOverlapSingleDayItem : IOverlapItem, OverlapHelper.IOverl
if (sideType == SideType.ROW) {
val lp = layoutParams as NetLayoutParams
if (which in lp.startRow .. lp.endRow) {
if (lp.rowCount != netLayout.rowCount) {
// refreshOverlap() 方法中虽然会同步 lp 跟 netLayout,但有点靠后了
// 这里会因为不同步在设置比重时出现问题,所以这里先进行同步
netLayout.setRowColumnCount(lp.rowCount, lp.columnCount)
}
netLayout.setRowShowWeight(which - lp.startRow, newWeight)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.mredrock.cyxbs.course.page.course.model

import androidx.annotation.WorkerThread
import androidx.collection.ArrayMap
import androidx.core.content.edit
import com.mredrock.cyxbs.api.account.IAccountService
import com.mredrock.cyxbs.api.course.ILessonService
Expand Down Expand Up @@ -70,8 +69,6 @@ object StuLessonRepository {
.switchMap { value ->
// 使用 switchMap 可以停止之前学号的订阅
value.nullUnless(Observable.just(emptyList())) { stuNum ->
android.util.Log.d("ggg", "${Exception().stackTrace[0].run { "$fileName:$lineNumber" }} -> " +
"observeSelfLesson: stuNum = $stuNum")
if (ILessonService.isUseLocalSaveLesson) {
LessonDataBase.stuLessonDao
.observeLesson(stuNum)
Expand Down

0 comments on commit dca5df0

Please sign in to comment.