Suppress android.app.RemoteServiceException

"Context.startForegroundService() did not then call Service.startForeground()"

FairEmail always properly calls startForeground
This commit is contained in:
M66B 2019-09-23 08:31:04 +02:00
parent 2bfc14f5c9
commit 5423a95f99
1 changed files with 2 additions and 1 deletions

View File

@ -394,7 +394,8 @@ public class Log {
if (ex.getMessage() != null && if (ex.getMessage() != null &&
(ex.getMessage().startsWith("Bad notification posted") || (ex.getMessage().startsWith("Bad notification posted") ||
ex.getMessage().contains("ActivityRecord not found") || ex.getMessage().contains("ActivityRecord not found") ||
ex.getMessage().startsWith("Unable to create layer"))) ex.getMessage().startsWith("Unable to create layer") ||
ex.getMessage().startsWith("Context.startForegroundService")))
return false; return false;
if (ex instanceof TimeoutException && if (ex instanceof TimeoutException &&