Skip to content

Commit

Permalink
Set default value of the timezone state to null
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
  • Loading branch information
ArnyminerZ committed Oct 8, 2024
1 parent bd4364a commit 2c07158
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@ import dagger.assisted.Assisted
import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import dagger.hilt.android.lifecycle.HiltViewModel
import java.text.Collator
import java.time.ZoneId
import java.time.format.TextStyle
import java.util.Locale
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import kotlinx.coroutines.launch
import java.text.Collator
import java.time.ZoneId
import java.time.format.TextStyle
import java.util.Locale
import java.util.TimeZone

@HiltViewModel(assistedFactory = CreateCalendarModel.Factory::class)
class CreateCalendarModel @AssistedInject constructor(
Expand Down Expand Up @@ -75,7 +74,7 @@ class CreateCalendarModel @AssistedInject constructor(
val color: Int = Css3Color.entries.random().argb,
val displayName: String = "",
val description: String = "",
val timeZoneId: String? = TimeZone.getDefault().id,
val timeZoneId: String? = null,
val supportVEVENT: Boolean = true,
val supportVTODO: Boolean = true,
val supportVJOURNAL: Boolean = true,
Expand Down

0 comments on commit 2c07158

Please sign in to comment.