mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 05:17:03 +05:30
fixup! refactor(android): remove TwoPaneLayoutPostActions
This commit is contained in:
parent
4d260933c0
commit
4bac4c6404
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ fun PostActions(
|
||||||
context: Context,
|
context: Context,
|
||||||
urlLauncher: UrlLauncher,
|
urlLauncher: UrlLauncher,
|
||||||
viewModel: ClawViewModel,
|
viewModel: ClawViewModel,
|
||||||
viewComments: (String) -> Unit,
|
navigateToComments: (String) -> Unit,
|
||||||
): PostActions {
|
): PostActions {
|
||||||
return object : PostActions {
|
return object : PostActions {
|
||||||
override fun viewPost(postId: String, postUrl: String, commentsUrl: String) {
|
override fun viewPost(postId: String, postUrl: String, commentsUrl: String) {
|
||||||
|
@ -31,7 +31,7 @@ fun PostActions(
|
||||||
|
|
||||||
override fun viewComments(postId: String) {
|
override fun viewComments(postId: String) {
|
||||||
viewModel.markPostAsRead(postId)
|
viewModel.markPostAsRead(postId)
|
||||||
viewComments(postId)
|
navigateToComments(postId)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun viewCommentsPage(post: UIPost) {
|
override fun viewCommentsPage(post: UIPost) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue