mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-02-08 09:04:36 +01:00
Merge branch 'develop-v4'
Some checks failed
Push (master) / Build for Google Play (AAB) (push) Failing after 1s
Some checks failed
Push (master) / Build for Google Play (AAB) (push) Failing after 1s
This commit is contained in:
commit
aebb621a8a
@ -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
|
||||||
|
@ -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) {
|
||||||
|
@ -10,9 +10,9 @@ buildscript {
|
|||||||
]
|
]
|
||||||
|
|
||||||
setup = [
|
setup = [
|
||||||
compileSdk: 33,
|
compileSdk: 34,
|
||||||
minSdk : 16,
|
minSdk : 16,
|
||||||
targetSdk : 33
|
targetSdk : 34
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user