refactor: move hardcoded texts to strings.xml

This commit is contained in:
robin committed 2026-10-04 14:19:38 +02:00
1 parent e589693c67
commit 4a62373992
4 files changed
+10 -5

No files matched your search

@@ -4,6 +4,7 @@ import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.widget.RemoteViews
import androidx.compose.ui.res.stringResource
import java.util.Calendar
import java.util.Random
@@ -43,7 +44,7 @@ class SimpleWidget : AppWidgetProvider() {
val randomIndex = random.nextInt(wordList.size)
wordList[randomIndex]
} else {
"Keine Wörter"
context.getString(R.string.msg_no_words)
}
// 4. RemoteViews aktualisieren