未验证 提交 8dcb6140 编写于 作者: I Ian Lake 提交者: GitHub

Merge pull request #645 from dennis-sheil/improve-grammar

[BasicRxJavaSampleKotlin] Grammatical English clarity for README
...@@ -18,7 +18,7 @@ The database is created using Room and has one entity: a `User`. Room generates ...@@ -18,7 +18,7 @@ The database is created using Room and has one entity: a `User`. Room generates
runtime. runtime.
Queries are executed in the `UserDao` class. The user retrieval is done via an observable query implemented using a Queries are executed in the `UserDao` class. The user retrieval is done via an observable query implemented using a
`Flowable`. Every time the user data is updated, the Flowable object will emit automatically, allowing to update the UI `Flowable`. Every time the user data is updated, the Flowable object will emit automatically, allowing it to update the UI
based on the latest data. The Flowable will emit only when the query result contains at least a row. When there is no based on the latest data. The Flowable will emit only when the query result contains at least a row. When there is no
data to match the query, the Flowable will not emit. data to match the query, the Flowable will not emit.
...@@ -27,7 +27,7 @@ data to match the query, the Flowable will not emit. ...@@ -27,7 +27,7 @@ data to match the query, the Flowable will not emit.
The app has a main Activity that displays the data. The app has a main Activity that displays the data.
The Activity works with a ViewModel to do the following: The Activity works with a ViewModel to do the following:
* subscribe to the emissions of the user name and updates the UI every time there is a new user name emitted * subscribe to the emissions of the user name and updates the UI every time there is a new user name emitted
* notify the ViewModel when the pressed the "Update" and passes the new user name. * notify the ViewModel when the user pressed the "Update" button and passes the new user name.
The ViewModel works with the data source to get and save the data. The ViewModel works with the data source to get and save the data.
Room guarantees that the observable query will be triggered on a background thread. In the Activity, the Flowable events Room guarantees that the observable query will be triggered on a background thread. In the Activity, the Flowable events
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册