From c50933908ccd7709e4a452547426b09c1858af90 Mon Sep 17 00:00:00 2001 From: soraefir Date: Mon, 25 May 2026 14:14:33 +0200 Subject: [PATCH] Fix crash due to rename --- app/build.gradle | 2 +- .../java/net/helcel/beans/helper/Groups.kt | 3 +- .../res/drawable/ic_launcher_monochrome.xml | 50 +++++++++++++++++++ 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/drawable/ic_launcher_monochrome.xml diff --git a/app/build.gradle b/app/build.gradle index 00010d8..7014125 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,7 +15,7 @@ android { applicationId 'net.helcel.beans' minSdk = 28 targetSdk = 37 - versionName "1.2b" + versionName "1.3" versionCode project.hasProperty('VERSION_CODE') ? project.property('VERSION_CODE').toInteger() : 1 } signingConfigs { diff --git a/app/src/main/java/net/helcel/beans/helper/Groups.kt b/app/src/main/java/net/helcel/beans/helper/Groups.kt index 08e8080..458aafe 100644 --- a/app/src/main/java/net/helcel/beans/helper/Groups.kt +++ b/app/src/main/java/net/helcel/beans/helper/Groups.kt @@ -3,6 +3,7 @@ package net.helcel.beans.helper import android.graphics.Color import android.graphics.drawable.ColorDrawable import kotlinx.serialization.ExperimentalSerializationApi +import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import kotlinx.serialization.Serializer import kotlinx.serialization.json.Json @@ -24,7 +25,7 @@ const val AUTO_GROUP = -1 @Serializable -class Groups(val id: Int, private val groups: HashMap) { +class Groups(val id: Int, @SerialName("grps") private val groups: HashMap) { @kotlinx.serialization.Transient private val _groupsFlow = MutableStateFlow>(groups.values.toList()) @kotlinx.serialization.Transient diff --git a/app/src/main/res/drawable/ic_launcher_monochrome.xml b/app/src/main/res/drawable/ic_launcher_monochrome.xml new file mode 100644 index 0000000..20f4b6b --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_monochrome.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + \ No newline at end of file