Fix the problem that offline indicator is shown when it should not.
Two problems are fixed: 1) Treat the app as still in foreground state when the app state is HAS_PAUSED_ACTIVITIES because this can happen when the activity is temporarily covered by another activity. 2) Detecting continuous online should be checked when switching from online to offline. Bug: 903649 Change-Id: Icbb2fe4b1021d9525940472e33ae820ca3117667 Reviewed-on: https://chromium-review.googlesource.com/c/1330705Reviewed-by:Peter Williamson <petewil@chromium.org> Commit-Queue: Jian Li <jianli@chromium.org> Cr-Commit-Position: refs/heads/master@{#607045}
Showing
Please register or sign in to comment