mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 12:07:03 +05:30
app: add newest posts screen
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
fcd27863a1
commit
79b03a4907
7 changed files with 43 additions and 6 deletions
|
@ -17,6 +17,7 @@ private fun stringEnumMapper(stringEnum: Strings): Int {
|
|||
Strings.RemoveFromSavedPosts -> R.string.remove_from_saved_posts
|
||||
Strings.SavedPosts -> R.string.saved_posts
|
||||
Strings.SubmittedBy -> R.string.submitted_by
|
||||
Strings.NewestPosts -> R.string.newest_posts
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,4 +10,5 @@
|
|||
<string name="refresh_posts_content_description">Refresh posts</string>
|
||||
<string name="open_comments">Open comments</string>
|
||||
<string name="change_sorting_order">Change sort order</string>
|
||||
<string name="newest_posts">Newest</string>
|
||||
</resources>
|
||||
|
|
|
@ -12,5 +12,6 @@ enum class Strings {
|
|||
RemoveFromSavedPosts,
|
||||
SavedPosts,
|
||||
SubmittedBy,
|
||||
NewestPosts,
|
||||
;
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ private fun stringEnumMapper(stringEnum: Strings): String {
|
|||
Strings.RemoveFromSavedPosts -> "Remove from saved posts"
|
||||
Strings.SavedPosts -> "Saved"
|
||||
Strings.SubmittedBy -> "submitted by %1s"
|
||||
Strings.NewestPosts -> "Newest"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue