Skip to content

Commit

Permalink
[Add] Add trim for address with whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabcd committed Jun 10, 2022
1 parent 723aa15 commit 3503328
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ActivityListAdapter(private val onItemClick: (Activity) -> Unit) :
val tempAddress = it.getAddressLine(0).split(", " + it.locality)[0]
address.append(tempAddress)
}
binding.storyAddress.text = address.toString()
binding.storyAddress.text = address.toString().trim()
} else {
binding.storyAddress.visibility = View.GONE
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ActivityPagedAdapter(private val onItemClick: (Activity) -> Unit) :
val tempAddress = it.getAddressLine(0).split(", " + it.locality)[0]
address.append(tempAddress)
}
binding.storyAddress.text = address.toString()
binding.storyAddress.text = address.toString().trim()
} else {
binding.storyAddress.visibility = View.GONE
}
Expand Down

0 comments on commit 3503328

Please sign in to comment.