Initialize displaying connection type

This commit is contained in:
M66B 2021-01-03 16:34:53 +01:00
parent 9f91feaae2
commit e70187bbe7
1 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,8 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
if (cm == null)
return;
showConnectionType();
NetworkRequest.Builder builder = new NetworkRequest.Builder();
builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
cm.registerNetworkCallback(builder.build(), networkCallback);