Suppress "Bad notification for startForeground"

This commit is contained in:
M66B 2022-12-09 09:09:11 +01:00
parent 1e886e7241
commit 99426d3093
1 changed files with 10 additions and 0 deletions

View File

@ -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?