Skip to content

Conversation

@tunjid
Copy link
Contributor

@tunjid tunjid commented Sep 26, 2022

offline

This CL improves the offline-first story by clearly communicating to the user:

  • When offline on the ForYouScreen
  • When the ForYouScreen is fetching data again as a result of sync kicking in

It also adds two utilities:

  • A NetworkMonitor for checking when online
  • A SyncStatusMonitor for checking when sync is running.

Implementations delegate to ConnectivityManager and WorkManager respectively.

@tunjid tunjid requested review from alexvanyo and dturner September 26, 2022 05:37
@google-cla
Copy link

google-cla bot commented Sep 26, 2022

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.

@tunjid tunjid force-pushed the tj/sync-ui branch 4 times, most recently from 8ad00bb to e7901f2 Compare September 26, 2022 08:58
@tunjid tunjid force-pushed the tj/sync-ui branch 4 times, most recently from 10ad113 to 4b8e342 Compare September 27, 2022 12:01
Copy link
Contributor

@alexvanyo alexvanyo left a 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!

@tunjid tunjid force-pushed the tj/sync-ui branch 5 times, most recently from aa93227 to 7e372b5 Compare September 30, 2022 16:58
Copy link
Contributor

@alexvanyo alexvanyo left a 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

Change-Id: I10a646e8a17f81d96351e69d36f0cb6ccf28e05c
@tunjid tunjid merged commit 9371d0d into main Oct 3, 2022
@keyboardsurfer keyboardsurfer deleted the tj/sync-ui branch November 15, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants