commit | f9f96b6fcb031edcfe7e294fbab071b6b0ce88c5 | [log] [tgz] |
---|---|---|
author | Shen Lin <shhenlin@gmail.com> | Fri Aug 09 16:20:45 2024 +0800 |
committer | Shen Lin <shhenlin@gmail.com> | Tue Aug 13 11:53:14 2024 +0800 |
tree | d9963cbbfafcd70bde6a105a5a501399969d047d | |
parent | af64d587fc411f7260bca0069dd3dc7b3dffd784 [diff] |
Migrate to best practise to read network state `getNetworkInfo()` has been deprecated, while the new method can guarantee the device has an actual network connection. Bug: b/358407371 Test: atest core/tests/coretests/src/android/util/NtpTrustedTimeTest Test: Treehugger Change-Id: I8c188859385c2b499280af5c4f27623c8e7dc29d