mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Refactoring
This commit is contained in:
@@ -388,7 +388,7 @@ public class EmailService implements AutoCloseable {
|
||||
if (bind_socket &&
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
|
||||
try {
|
||||
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
ConnectivityManager cm = Helper.getSystemService(context, ConnectivityManager.class);
|
||||
Network active = cm.getActiveNetwork();
|
||||
if (active != null) {
|
||||
EntityLog.log(context, EntityLog.Type.Network, "Binding to" +
|
||||
|
||||
Reference in New Issue
Block a user