Skip to content

Commit

Permalink
Rename Action to PagingAction
Browse files Browse the repository at this point in the history
Signed-off-by: matt-ramotar <[email protected]>
  • Loading branch information
matt-ramotar committed Jul 21, 2024
1 parent 416b801 commit 9b41120
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class TimelineScreenPresenter(
ids = pagingState.ids,
eventSink = { event ->
when (event) {
TimelineScreen.Event.Refresh -> pager.dispatch(Action.refresh())
TimelineScreen.Event.Refresh -> pager.dispatch(PagingAction.refresh())
}
}
)
Expand Down Expand Up @@ -180,14 +180,14 @@ class TimelineScreenPresenter(...) : Presenter<TimelineScreen.State> {
val operation = when (sortingMethod) {
is Top -> SortForTimeRange(operation.timeRange)
}
pager.dispatch(Action.UpdateOperations(operation))
pager.dispatch(PagingAction.UpdateOperations(operation))
}

return TimelineScreen.State(
ids = pagingState.ids,
eventSink = { event ->
when (event) {
TimelineScreen.Event.Refresh -> pager.dispatch(Action.refresh())
TimelineScreen.Event.Refresh -> pager.dispatch(PagingAction.refresh())
TimelineEvent.UpdateSort -> sortingMethod = event.sortingMethod
}
}
Expand Down

0 comments on commit 9b41120

Please sign in to comment.