Fix text in lucky number widget (#1825)

This commit is contained in:
Rafał Borcz 2022-04-06 08:01:11 +02:00 committed by GitHub
parent d473d53879
commit 679cf2554d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ class LuckyNumberWidgetProvider : AppWidgetProvider() {
.apply {
setTextViewText(
R.id.luckyNumberWidgetNumber,
luckyNumber.dataOrNull?.toString() ?: "#"
luckyNumber.dataOrNull?.luckyNumber?.toString() ?: "#"
)
setOnClickPendingIntent(R.id.luckyNumberWidgetContainer, appIntent)
}