[App] Update target SDK to 34

This commit is contained in:
Kuba Szczodrzyński 2025-02-02 18:13:47 +01:00
parent 02a9724587
commit f65d01de1b
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
] ]
} }