OSDN Git Service

Do not print misleading debug messages in some scenarios.
authorJack Yu <jackyu@google.com>
Tue, 23 Aug 2016 23:09:36 +0000 (16:09 -0700)
committerJack Yu <jackyu@google.com>
Tue, 23 Aug 2016 23:09:36 +0000 (16:09 -0700)
commitbfd1d6ed49579edca1494eb690dfa552c56b58b2
tree0786cecadd623785686730ddb392e1774731d5fd
parent4ecc9d2db400225b6f5e0d76d17b8f94354996a6
Do not print misleading debug messages in some scenarios.

When the mobile network is not active, querying the network
information might trigger the misleading debug messages. Added
some condition checks to prevent this.

bug: 30850733
Change-Id: Ice6d548a56f98bac7fe2ca6a06148350b505533d
core/java/android/net/NetworkIdentity.java