ui: more robust isConnected check.
1. Follow https://developer.android.com/training/monitoring-device-state/connectivity-status-type to determine whether to report ourself as having connectivity or not. Tested by turning the Wifi & LTE off and on, seems to work well in the contrived test case. 2. Call superclass for onLost() and onLinkPropertiesChanged() handlers. Current Android versions have no code in the superclass of these two callbacks, but future proofiness. 3. Log when the UI report of LostInternet changes, so we can find it. Fixes https://github.com/tailscale/tailscale/issues/3542 Signed-off-by: Denton Gentry <dgentry@tailscale.com>pull/26/head
parent
0265dcfd1b
commit
79bb2f33d0
Loading…
Reference in New Issue