OSDN Git Service

Don't notify on network switch if source network is validated.
authorLorenzo Colitti <lorenzo@google.com>
Mon, 29 Aug 2016 05:03:11 +0000 (14:03 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 29 Aug 2016 07:30:21 +0000 (16:30 +0900)
commitc2e10bb0741446bb222809658a81cbe49dfa89fb
tree7f1b155c344d0885e4c564a74ad464b3cd85850e
parentb79f06a47610d87a2eb81ae83ccdaf9336229bff
Don't notify on network switch if source network is validated.

Sometimes we switch away from a network to another (e.g., wifi to
cell data) not because the old network is unvalidated, but
because the score is lowered by a low signal strength.

In this case, don't notify the user of a network switch.

Bug: 31132499
Change-Id: I996a6e00096f8cb864fa9b00b36921725a4edb53
services/core/java/com/android/server/ConnectivityService.java
services/core/java/com/android/server/connectivity/LingerMonitor.java