Skip to content

Commit

Permalink
Formatted usage steps in README.md to bold for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarquella committed Jun 15, 2020
1 parent 4b7af8f commit 12e8eec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies {

## Usage

1. Apply the mutating function
**1- Apply the mutating function**

**Java** ([Java 8+](https://developer.android.com/studio/write/java8-support) required)

Expand All @@ -42,7 +42,7 @@ val mutableDataSourceFactory = dataSourceFactory.mutateByPage { original ->
> **Important**
> The mutating function is applied per page. You will need to be careful in cases such as adding items at every page without taking into account that the `original` list has already loaded all items (page is empty), as it could lead to a never ending list.
2. Build the LiveData PagedList
**2- Build the LiveData PagedList**

Generating the `LiveData<PagedList>` instance from the `MutableDataSource.Factory` is the same as with the regular `DataSource.Factory`. However, instead of using `LivePagedListBuilder` to do so, `MutableLivePagedListBuilder` should be used:

Expand Down

0 comments on commit 12e8eec

Please sign in to comment.