mirror of https://github.com/M66B/FairEmail.git
Suppress "Bad notification for startForeground"
This commit is contained in:
parent
1e886e7241
commit
99426d3093
|
@ -797,6 +797,16 @@ public class Log {
|
|||
*/
|
||||
return false;
|
||||
|
||||
if ("android.app.RemoteServiceException$CannotPostForegroundServiceNotificationException".equals(ex.getClass().getName()))
|
||||
/*
|
||||
android.app.RemoteServiceException$CannotPostForegroundServiceNotificationException: Bad notification for startForeground
|
||||
at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2219)
|
||||
at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0)
|
||||
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2505)
|
||||
at android.os.Handler.dispatchMessage(Handler.java:106)
|
||||
*/
|
||||
return false;
|
||||
|
||||
if ("android.view.WindowManager$BadTokenException".equals(ex.getClass().getName()))
|
||||
/*
|
||||
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@e9084db is not valid; is your activity running?
|
||||
|
|
Loading…
Reference in New Issue