Report NO_CONNECTIVITY when failover net unavail
Fix ConnectivityService so that it reports connection status correctly. bug: 2128595
This commit is contained in:
@@ -809,6 +809,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
intent.putExtra(ConnectivityManager.
|
intent.putExtra(ConnectivityManager.
|
||||||
EXTRA_OTHER_NETWORK_INFO, switchTo);
|
EXTRA_OTHER_NETWORK_INFO, switchTo);
|
||||||
} else {
|
} else {
|
||||||
|
intent.putExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY,
|
||||||
|
true);
|
||||||
newNet.reconnect();
|
newNet.reconnect();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user