mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Added network state to debug info
This commit is contained in:
parent
d731876a51
commit
157cf110be
1 changed files with 7 additions and 0 deletions
|
@ -1164,6 +1164,13 @@ public class Log {
|
|||
}
|
||||
|
||||
size += write(os, "VPN active=" + ConnectionHelper.vpnActive(context) + "\r\n\r\n");
|
||||
|
||||
ConnectionHelper.NetworkState state = ConnectionHelper.getNetworkState(context);
|
||||
size += write(os, "Connected=" + state.isConnected() + "\r\n");
|
||||
size += write(os, "Suitable=" + state.isSuitable() + "\r\n");
|
||||
size += write(os, "Unmetered=" + state.isUnmetered() + "\r\n");
|
||||
size += write(os, "Roaming=" + state.isRoaming() + "\r\n");
|
||||
size += write(os, "Type=" + state.getType() + "\r\n\r\n");
|
||||
}
|
||||
|
||||
db.attachment().setDownloaded(attachment.id, size);
|
||||
|
|
Loading…
Reference in a new issue