diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ff06d6b..0864437 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -15,7 +15,7 @@ android { applicationId = "com.d4rk.cartcalculator" minSdk = 23 targetSdk = 35 - versionCode = 73 + versionCode = 75 versionName = "1.1.2" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" resourceConfigurations += listOf( diff --git a/app/src/main/kotlin/com/d4rk/cartcalculator/ui/components/dialogs/AddNewCartAlertDialog.kt b/app/src/main/kotlin/com/d4rk/cartcalculator/ui/components/dialogs/AddNewCartAlertDialog.kt index df63da4..35def1a 100644 --- a/app/src/main/kotlin/com/d4rk/cartcalculator/ui/components/dialogs/AddNewCartAlertDialog.kt +++ b/app/src/main/kotlin/com/d4rk/cartcalculator/ui/components/dialogs/AddNewCartAlertDialog.kt @@ -88,4 +88,6 @@ fun AddNewCartAlertDialogContent( Spacer(modifier = Modifier.height(12.dp)) Text(text = stringResource(id = R.string.summary_cart_dialog)) } + newCart.value = + ShoppingCartTable(name = nameText.value.ifEmpty { defaultName } , date = currentDate) } \ No newline at end of file diff --git a/app/src/main/kotlin/com/d4rk/cartcalculator/ui/screens/help/HelpViewModel.kt b/app/src/main/kotlin/com/d4rk/cartcalculator/ui/screens/help/HelpViewModel.kt index 7a9d08a..bf1dfee 100644 --- a/app/src/main/kotlin/com/d4rk/cartcalculator/ui/screens/help/HelpViewModel.kt +++ b/app/src/main/kotlin/com/d4rk/cartcalculator/ui/screens/help/HelpViewModel.kt @@ -4,7 +4,6 @@ import android.app.Application import androidx.compose.runtime.MutableState import androidx.compose.runtime.State import androidx.compose.runtime.mutableStateOf -import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.viewModelScope import com.d4rk.cartcalculator.ui.viewmodel.BaseViewModel import com.d4rk.cartcalculator.utils.IntentUtils @@ -27,7 +26,7 @@ class HelpViewModel(application: Application) : BaseViewModel(application) { private fun initializeVisibilityStates() { viewModelScope.launch(coroutineExceptionHandler) { - delay(timeMillis = 50L) + delay(timeMillis = 100L) showFab() } }