mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
[Gradle] Update Kotlin to v1.5.20.
This commit is contained in:
parent
288c80ea26
commit
96dbb0a057
@ -48,7 +48,7 @@ class MobidziennikWebAttendance(override val data: DataMobidziennik,
|
||||
//syncWeeks.clear()
|
||||
//syncWeeks += Date.fromY_m_d("2019-12-19")
|
||||
|
||||
syncWeeks.minBy { it.value }?.let {
|
||||
syncWeeks.minByOrNull { it.value }?.let {
|
||||
data.toRemove.add(DataRemoveModel.Attendance.from(it))
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ class LoginProgressFragment : Fragment(), CoroutineScope {
|
||||
|
||||
val maxProfileId = max(
|
||||
app.db.profileDao().lastId ?: 0,
|
||||
activity.profiles.maxBy { it.profile.id }?.profile?.id ?: 0
|
||||
activity.profiles.maxByOrNull { it.profile.id }?.profile?.id ?: 0
|
||||
)
|
||||
val loginType = args.getInt("loginType", -1)
|
||||
val loginMode = args.getInt("loginMode", 0)
|
||||
|
@ -120,8 +120,8 @@ class TimetableFragment : Fragment(), CoroutineScope {
|
||||
}
|
||||
|
||||
val lessonRanges = app.db.lessonRangeDao().getAllNow(App.profileId)
|
||||
startHour = lessonRanges.map { it.startTime.hour }.min() ?: DEFAULT_START_HOUR
|
||||
endHour = lessonRanges.map { it.endTime.hour }.max()?.plus(1) ?: DEFAULT_END_HOUR
|
||||
startHour = lessonRanges.map { it.startTime.hour }.minOrNull() ?: DEFAULT_START_HOUR
|
||||
endHour = lessonRanges.map { it.endTime.hour }.maxOrNull()?.plus(1) ?: DEFAULT_END_HOUR
|
||||
}
|
||||
deferred.await()
|
||||
if (!isAdded)
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
buildscript {
|
||||
ext {
|
||||
kotlin_version = '1.4.31'
|
||||
kotlin_version = '1.5.20'
|
||||
|
||||
release = [
|
||||
versionName: "4.8.2",
|
||||
|
Loading…
Reference in New Issue
Block a user