Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
itning committed Dec 15, 2018
1 parent 194133c commit 2be06d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "top.itning.yunshuclassschedule"
minSdkVersion 21
targetSdkVersion 28
versionCode 41
versionName "2.3.1"
versionCode 42
versionName "2.3.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,15 @@ class TodayFragment : Fragment() {
val lp: ViewGroup.LayoutParams = ll.layoutParams
if (height == 0) {
//如果今天没有课那么不进行赋值,防止修改后造成BUG
height = if (classScheduleList.isEmpty()) {
0
if (classScheduleList.isEmpty()) {
lp.height = mView.height - i
} else {
mView.height - i
height = mView.height - i
lp.height = height
}
} else {
lp.height = height
}
lp.height = height
ll.layoutParams = lp
}
}
Expand Down

0 comments on commit 2be06d6

Please sign in to comment.