mirror of https://github.com/M66B/FairEmail.git
Initialize displaying connection type
This commit is contained in:
parent
9f91feaae2
commit
e70187bbe7
|
@ -238,6 +238,8 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
||||||
if (cm == null)
|
if (cm == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
showConnectionType();
|
||||||
|
|
||||||
NetworkRequest.Builder builder = new NetworkRequest.Builder();
|
NetworkRequest.Builder builder = new NetworkRequest.Builder();
|
||||||
builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
|
builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
|
||||||
cm.registerNetworkCallback(builder.build(), networkCallback);
|
cm.registerNetworkCallback(builder.build(), networkCallback);
|
||||||
|
|
Loading…
Reference in New Issue