Compare commits
37
Commits
1.4.1
..
ab0e010c7f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab0e010c7f | ||
|
|
553e33d441 | ||
|
|
eec95cdcb0 | ||
|
|
106c4e27fc
|
||
|
|
47d0471b48
|
||
|
|
56968dbe3b | ||
|
|
56036d5840
|
||
|
|
4fa29da79d
|
||
|
|
c2c1017633 | ||
|
|
3aeabf4dd3 | ||
|
|
937c3db1f5 | ||
|
|
5b3c47045c | ||
|
|
7581985abd
|
||
|
|
810ca20201
|
||
|
|
678a90ead9
|
||
|
|
88469fa96c
|
||
|
|
119ae757b9
|
||
|
|
c3d380ddb4
|
||
|
|
a8ba00269b
|
||
|
|
756a37de23
|
||
|
|
5f7266013d
|
||
|
|
e98dc4a86b
|
||
|
|
afb14ff7b9
|
||
|
|
1bee1dabbe
|
||
|
|
84432fe68d
|
||
|
|
7e00b14d27
|
||
|
|
ec4d60897a
|
||
|
|
5c74336c10
|
||
|
|
d617c5c7be
|
||
|
|
a9a303478c
|
||
|
|
110ab397b8 | ||
|
|
3675e87651 | ||
|
|
65799496f9 | ||
|
|
2967dbd001
|
||
|
|
c2f59fa1df | ||
|
|
5c43bedc77 | ||
|
|
5ee2041769
|
+1
-1
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id 'com.android.application' version '9.2.1'
|
||||
id 'com.android.application' version '9.3.1'
|
||||
id 'org.jetbrains.kotlin.plugin.serialization' version '2.4.0'
|
||||
id 'org.jetbrains.kotlin.plugin.compose' version '2.4.0'
|
||||
}
|
||||
|
||||
@@ -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,7 +165,15 @@ class NewProjectActivity : AppCompatActivity() {
|
||||
null, false, DBProject.ACCESS_LEVEL_UNKNOWN,
|
||||
""
|
||||
)
|
||||
createProject()
|
||||
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user