Bug fix: support tab doesn't show offline UI initially.

Bug: 29601818

The support UI correctly monitors network state change after being
displayed, but it fails to set initial hasInternet flag. So we
manually refresh this flag as part of onResume.

Change-Id: Icbf3cca708a961390073cfa77ec08bec7dd4d82f
This commit is contained in:
Fan Zhang
2016-06-23 08:38:00 -07:00
parent a00e3b78de
commit a8219fb1c1

View File

@@ -117,6 +117,7 @@ public final class SupportFragment extends InstrumentedFragment implements View.
.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
.build(),
mNetworkCallback);
mSupportItemAdapter.setHasInternet(hasInternet());
}
@Override