-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Offline-first UX improvements #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
8ad00bb to
e7901f2
Compare
...ava/com/google/samples/apps/nowinandroid/core/data/util/ConnectivityManagerNetworkMonitor.kt
Outdated
Show resolved
Hide resolved
...ava/com/google/samples/apps/nowinandroid/core/data/util/ConnectivityManagerNetworkMonitor.kt
Show resolved
Hide resolved
.../foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouViewModel.kt
Outdated
Show resolved
Hide resolved
...c/main/java/com/google/samples/apps/nowinandroid/sync/status/WorkManagerSyncStatusMonitor.kt
Outdated
Show resolved
Hide resolved
.../foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouViewModel.kt
Outdated
Show resolved
Hide resolved
.../foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouViewModel.kt
Show resolved
Hide resolved
10ad113 to
4b8e342
Compare
...ure/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt
Outdated
Show resolved
Hide resolved
alexvanyo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New loading logic looks good to me!
aa93227 to
7e372b5
Compare
alexvanyo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some minor nits
...c/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/LoadingWheel.kt
Outdated
Show resolved
Hide resolved
...ure/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt
Outdated
Show resolved
Hide resolved
Change-Id: I10a646e8a17f81d96351e69d36f0cb6ccf28e05c
This CL improves the offline-first story by clearly communicating to the user:
It also adds two utilities:
NetworkMonitorfor checking when onlineSyncStatusMonitorfor checking when sync is running.Implementations delegate to
ConnectivityManagerandWorkManagerrespectively.