Merge branch 'develop-v4'
Some checks failed
Push (master) / Build for Google Play (AAB) (push) Failing after 1s

This commit is contained in:
Kuba Szczodrzyński 2025-02-02 18:14:01 +01:00
commit aebb621a8a
No known key found for this signature in database
GPG Key ID: 43037AC62A600562
3 changed files with 4 additions and 6 deletions

View File

@ -66,9 +66,7 @@ class AttendanceBar : View {
} }
@SuppressLint("DrawAllocation", "CanvasSize") @SuppressLint("DrawAllocation", "CanvasSize")
override fun onDraw(canvas: Canvas?) { override fun onDraw(canvas: Canvas) {
canvas ?: return
val sum = attendancesList.sumOf { it.count } val sum = attendancesList.sumOf { it.count }
if (sum == 0) { if (sum == 0) {
return return

View File

@ -388,7 +388,7 @@ class GenerateBlockTimetableDialog(
try { try {
val uri = resolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values) ?: return@withContext null val uri = resolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values) ?: return@withContext null
resolver.openOutputStream(uri).use { resolver.openOutputStream(uri).use {
bitmap.compress(Bitmap.CompressFormat.PNG, 100, it) bitmap.compress(Bitmap.CompressFormat.PNG, 100, it ?: return@use)
} }
uri uri
} catch (e: Exception) { } catch (e: Exception) {

View File

@ -10,9 +10,9 @@ buildscript {
] ]
setup = [ setup = [
compileSdk: 33, compileSdk: 34,
minSdk : 16, minSdk : 16,
targetSdk : 33 targetSdk : 34
] ]
} }