title: ConnectivityManager.NetworkCallback not working as expected
body: <p>I am using ConnectivityManager.NetworkCallback to get the callback when the internet is available or lost. Below is the configuration to determine what transport Type i need to listen to.</p>
  
  <pre><code>manager.registerNetworkCallback(
              new NetworkRequest.Builder()
                      .addTransportType(NetworkCapabilities.TRANSPORT_WIFI)
                      .addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR)
                      .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
                      .build(), networkCallback);
  </code></pre>
  
  <p>I am using both the transport type. If the <strong>WiFi</strong> and <strong>celluar</strong> data is on and the wifi is turned off then i get the callback that the internet is LOST, even though the celluar data is on. I need the callback to return available when switching from WiFi to Cellular.</p>