Skip to content

Commit 9e6d613

Browse files
committed
feat #9: add support for image in the Affirmation class
1 parent 4ccd7be commit 9e6d613

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Affirmations/.idea/workspace.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package com.example.affirmations.model
22

3-
data class Affirmation(val stringResourceId:Int) {
3+
import androidx.annotation.DrawableRes
4+
import androidx.annotation.StringRes
5+
6+
data class Affirmation(@StringRes val stringResourceId: Int, @DrawableRes val imageResourceId: Int) {
7+
48

59
}

0 commit comments

Comments
 (0)