Skip to content

Commit 418d3b5

Browse files
committed
Replace String concatenation with string resource
1 parent e8b5ae2 commit 418d3b5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/src/main/java/ai/elimu/content_provider/ui/letter_sound/LetterSoundsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class LetterSoundsFragment : Fragment() {
163163
val letterSounds = letterSoundDao.loadAll()
164164
Log.i(TAG, "letterSounds.size(): " + letterSounds.size)
165165
activity?.runOnUiThread {
166-
binding.textLetterSounds.text = "letterSounds.size(): " + letterSounds.size
166+
binding.textLetterSounds.text = getString(R.string.lettersounds_size, letterSounds.size)
167167
Snackbar.make(
168168
binding.textLetterSounds,
169169
"letterSounds.size(): " + letterSounds.size,

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222
<string name="storybooks_size">storyBooks.size(): %d</string>
2323
<string name="sounds_size">sounds.size(): %d</string>
2424
<string name="numbers_size">numbers.size(): %d</string>
25+
<string name="lettersounds_size">letterSounds.size(): %d</string>
2526
</resources>

0 commit comments

Comments
 (0)