Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.
This commit is contained in:
@@ -32,7 +32,7 @@ import kotlin.math.round
|
|||||||
private const val YEAR_DATE_FORMAT = "MMM dd, yyyy"
|
private const val YEAR_DATE_FORMAT = "MMM dd, yyyy"
|
||||||
private const val MONTH_DATE_FORMAT = "MMM dd"
|
private const val MONTH_DATE_FORMAT = "MMM dd"
|
||||||
|
|
||||||
var locale = Locale.getDefault()
|
var locale: Locale = Locale.getDefault()
|
||||||
var yearFormatter = SimpleDateFormat(YEAR_DATE_FORMAT, locale)
|
var yearFormatter = SimpleDateFormat(YEAR_DATE_FORMAT, locale)
|
||||||
var monthFormatter = SimpleDateFormat(MONTH_DATE_FORMAT, locale)
|
var monthFormatter = SimpleDateFormat(MONTH_DATE_FORMAT, locale)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -82,7 +82,7 @@ class NotificationSummaryState(
|
|||||||
Instant.ofEpochSecond(createAt).atZone(ZoneId.systemDefault()).toLocalDateTime(),
|
Instant.ofEpochSecond(createAt).atZone(ZoneId.systemDefault()).toLocalDateTime(),
|
||||||
)
|
)
|
||||||
|
|
||||||
fun today() = sdf.format(LocalDateTime.now())
|
fun today(): String = sdf.format(LocalDateTime.now())
|
||||||
|
|
||||||
public suspend fun initializeSuspend() {
|
public suspend fun initializeSuspend() {
|
||||||
checkNotInMainThread()
|
checkNotInMainThread()
|
||||||
|
|||||||
Reference in New Issue
Block a user