Compare commits

..
Author SHA1 Message Date
Renovate Bot 14bb112610 Update plugin org.jetbrains.kotlin.plugin.compose to v2.4.10 2026-07-15 02:01:16 +00:00
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
plugins {
id 'com.android.application' version '9.2.1'
id 'org.jetbrains.kotlin.plugin.serialization' version '2.4.0'
id 'org.jetbrains.kotlin.plugin.compose' version '2.4.0'
id 'org.jetbrains.kotlin.plugin.compose' version '2.4.10'
}
android {
@@ -241,7 +241,7 @@ class EditBillViewModel : ViewModel() {
}
fun isFormValid(): Boolean {
return what.isNotEmpty() &&
return what.isNotEmpty() && !what.contains(",") &&
timestamp != 0L &&
payerId != 0L &&
owersSelection.any { it.value }
@@ -255,7 +255,7 @@ class EditBillViewModel : ViewModel() {
errorInvalidForm: String
): String? {
return when {
what.isEmpty() -> errorWhat
what.isEmpty() || what.contains(",") -> errorWhat
timestamp == 0L -> errorDate
payerId == 0L -> errorPayer
owersSelection.none { it.value } -> errorOwers
@@ -165,8 +165,16 @@ class NewProjectActivity : AppCompatActivity() {
null, false, DBProject.ACCESS_LEVEL_UNKNOWN,
""
)
if (isValidUrl(url) && todoCreate && ProjectType.COSPEND == type &&
db.cowspentServerSyncHelper.canCreateAuthenticatedProject(fakeProj) &&
!viewModel.showAuthWarningDialog // Avoid infinite loop
) {
viewModel.showAuthWarningDialog = true
} else {
createProject()
}
}
private fun getFormattedUrl(): String {
var url = viewModel.projectUrl.trim()