Skip to content

Commit 7d9f238

Browse files
committed
Enhance naming
1 parent 6bdf1b4 commit 7d9f238

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/src/main/java/ai/elimu/content_provider/ui/image/ImagesFragment.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ class ImagesFragment : Fragment() {
108108

109109
val roomDb = RoomDb.getDatabase(context)
110110
val imageDao = roomDb.imageDao()
111-
val image_WordDao = roomDb.image_WordDao()
111+
val imageWordDao = roomDb.image_WordDao()
112112

113113
// Empty the database table before downloading up-to-date content
114-
image_WordDao.deleteAll()
114+
imageWordDao.deleteAll()
115115
imageDao.deleteAll()
116116

117117
// TODO: also delete corresponding image files (only those that are no longer used)
@@ -158,13 +158,13 @@ class ImagesFragment : Fragment() {
158158
Log.i(TAG, "wordGsons.size(): " + wordGsons.size)
159159
for (wordGson in wordGsons) {
160160
Log.i(TAG, "wordGson.getId(): " + wordGson.id)
161-
val image_Word = Image_Word()
162-
image_Word.image_id = imageGson.id
163-
image_Word.words_id = wordGson.id
164-
image_WordDao.insert(image_Word)
161+
val imageWord = Image_Word()
162+
imageWord.image_id = imageGson.id
163+
imageWord.words_id = wordGson.id
164+
imageWordDao.insert(imageWord)
165165
Log.i(
166166
TAG,
167-
"Stored Image_Word in database. Image_id: " + image_Word.image_id + ", words_id: " + image_Word.words_id
167+
"Stored Image_Word in database. Image_id: " + imageWord.image_id + ", words_id: " + imageWord.words_id
168168
)
169169
}
170170
}

0 commit comments

Comments
 (0)