Skip to content

Commit 79f5454

Browse files
committed
minor code style update
1 parent 99f0e0f commit 79f5454

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ android {
7070
}
7171

7272
dependencies {
73-
implementation 'com.github.SimpleMobileTools:Simple-Commons:d04f40487b'
73+
implementation 'com.github.SimpleMobileTools:Simple-Commons:795a4ae3e3'
7474
implementation 'androidx.multidex:multidex:2.0.1'
75-
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
75+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
7676
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
7777
implementation "androidx.print:print:1.0.0"
7878

app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ class MonthView(context: Context, attrs: AttributeSet, defStyle: Int) : View(con
116116

117117
private fun groupAllEvents() {
118118
days.forEach { day ->
119-
120119
day.dayEvents.forEach { event ->
121120
// make sure we properly handle events lasting multiple days and repeating ones
122121
val lastEvent = allEvents.lastOrNull { it.id == event.id }
@@ -133,10 +132,9 @@ class MonthView(context: Context, attrs: AttributeSet, defStyle: Int) : View(con
133132
}
134133
}
135134

136-
allEvents =
137-
allEvents.asSequence().sortedWith(
138-
compareBy({ -it.daysCnt }, { !it.isAllDay }, { it.startTS }, { it.endTS }, { it.startDayIndex }, { it.title })
139-
).toMutableList() as ArrayList<MonthViewEvent>
135+
allEvents = allEvents.asSequence().sortedWith(
136+
compareBy({ -it.daysCnt }, { !it.isAllDay }, { it.startTS }, { it.endTS }, { it.startDayIndex }, { it.title })
137+
).toMutableList() as ArrayList<MonthViewEvent>
140138
}
141139

142140
override fun onDraw(canvas: Canvas) {

0 commit comments

Comments
 (0)