Skip to content

Commit

Permalink
Allow for "UKNOWN" device types in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Aug 30, 2024
1 parent fbaa2b1 commit cea80d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class DeviceVH(parent: ViewGroup) :
when (meta.deviceType) {
MetaInfo.DeviceType.PHONE -> R.drawable.ic_baseline_phone_android_24
MetaInfo.DeviceType.TABLET -> R.drawable.ic_baseline_tablet_android_24
MetaInfo.DeviceType.UNKNOWN -> R.drawable.ic_baseline_question_mark_24
}
)
deviceLabel.text = meta.deviceLabel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ data class MetaInfo(
enum class DeviceType {
@Json(name = "PHONE") PHONE,
@Json(name = "TABLET") TABLET,
@Json(name = "UNKNOWN") UNKNOWN,
}
}

0 comments on commit cea80d6

Please sign in to comment.