mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-02-08 00:54:37 +01:00
[App] Update target SDK to 34
This commit is contained in:
parent
02a9724587
commit
f65d01de1b
@ -66,9 +66,7 @@ class AttendanceBar : View {
|
||||
}
|
||||
|
||||
@SuppressLint("DrawAllocation", "CanvasSize")
|
||||
override fun onDraw(canvas: Canvas?) {
|
||||
canvas ?: return
|
||||
|
||||
override fun onDraw(canvas: Canvas) {
|
||||
val sum = attendancesList.sumOf { it.count }
|
||||
if (sum == 0) {
|
||||
return
|
||||
|
@ -388,7 +388,7 @@ class GenerateBlockTimetableDialog(
|
||||
try {
|
||||
val uri = resolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values) ?: return@withContext null
|
||||
resolver.openOutputStream(uri).use {
|
||||
bitmap.compress(Bitmap.CompressFormat.PNG, 100, it)
|
||||
bitmap.compress(Bitmap.CompressFormat.PNG, 100, it ?: return@use)
|
||||
}
|
||||
uri
|
||||
} catch (e: Exception) {
|
||||
|
@ -10,9 +10,9 @@ buildscript {
|
||||
]
|
||||
|
||||
setup = [
|
||||
compileSdk: 33,
|
||||
compileSdk: 34,
|
||||
minSdk : 16,
|
||||
targetSdk : 33
|
||||
targetSdk : 34
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user