Skip to content

Commit

Permalink
Fix crash on community element click
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Feb 16, 2024
1 parent 8a5cde7 commit 7156336
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/kotlin/area/AreaAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class AreaAdapter(
) : Item()

data class Element(
val id: String,
val id: Long,
val iconId: String,
val name: String,
val status: String,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/element/AreaElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package element
import org.json.JSONArray

data class AreaElement(
val id: String,
val id: Long,
val lat: Double,
val lon: Double,
val icon: String,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/element/ElementQueries.kt
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class ElementQueries(private val db: SQLiteOpenHelper) {
buildList {
while (cursor.moveToNext()) {
this += AreaElement(
id = cursor.getString(0),
id = cursor.getLong(0),
lat = cursor.getDouble(1),
lon = cursor.getDouble(2),
icon = cursor.getString(3),
Expand Down

0 comments on commit 7156336

Please sign in to comment.