Skip to content

Commit

Permalink
fix: add game platform
Browse files Browse the repository at this point in the history
  • Loading branch information
croumy committed Oct 12, 2023
1 parent 88a98c5 commit e8a40a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ data class GameInfo(
) : Parcelable {
val picture: String get() = "https://howlongtobeat.com/games/$game_image"
var isInUserList: Boolean = false
private val platforms get(): List<String> = profile_platform.split(",")
private val platforms get(): List<String> = profile_platform.split(",").map { it.trim() }
val platformsWithNoneOption get(): List<String> = listOf(MainActivity.context.getString(R.string.none)).plus(platforms)

constructor(parcel: Parcel) : this(
Expand Down

0 comments on commit e8a40a2

Please sign in to comment.