Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Skip first bulletpoint in new release screen (EXPOSUREAPP-12399) #4975

Merged
merged 2 commits into from
Mar 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ class NewReleaseInfoFragment : Fragment(R.layout.new_release_info_screen_fragmen
}
}

// TODO: (Temporary) - add the first element back after 2.19 is released
private fun getItems(): List<NewReleaseInfoItem> {
val titles = resources.getStringArray(R.array.new_release_title)
val textBodies = resources.getStringArray(R.array.new_release_body)
val linkifiedLabels = resources.getStringArray(R.array.new_release_linkified_labels)
val linkTargets = resources.getStringArray(R.array.new_release_target_urls)
val titles = resources.getStringArray(R.array.new_release_title).drop(1).toTypedArray()
chiljamgossow marked this conversation as resolved.
Show resolved Hide resolved
val textBodies = resources.getStringArray(R.array.new_release_body).drop(1).toTypedArray()
val linkifiedLabels = resources.getStringArray(R.array.new_release_linkified_labels).drop(1).toTypedArray()
val linkTargets = resources.getStringArray(R.array.new_release_target_urls).drop(1).toTypedArray()
return vm.getItems(titles, textBodies, linkifiedLabels, linkTargets)
}

Expand Down