From 2c123b7902a70167377cae1a39d7be635c0d9e9a Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 12 Mar 2020 13:22:42 +0100 Subject: [PATCH] Workaround for Android network bug Android 6.0 Huawei Che2-L11 --- app/src/main/java/eu/faircode/email/ConnectionHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ConnectionHelper.java b/app/src/main/java/eu/faircode/email/ConnectionHelper.java index f975358995..d2a8ce03ca 100644 --- a/app/src/main/java/eu/faircode/email/ConnectionHelper.java +++ b/app/src/main/java/eu/faircode/email/ConnectionHelper.java @@ -264,6 +264,10 @@ public class ConnectionHelper { Log.i("isMetered: underlying is unmetered"); return false; } + } else { + // Workaround: active network = VPN, active network info = WiFi + if (network.equals(active) && !cm.isActiveNetworkMetered()) + return false; } }