Suppress DeadSystemException

pull/187/head
M66B 4 years ago
parent acd1412301
commit c7b9517a5f

@ -688,9 +688,8 @@ public class Log {
// Some Android versions (Samsung) send images as clip data // Some Android versions (Samsung) send images as clip data
return false; return false;
if (ex instanceof RuntimeException && if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { Throwable cause = ex;
Throwable cause = ex.getCause();
while (cause != null) { while (cause != null) {
if (cause instanceof DeadSystemException) if (cause instanceof DeadSystemException)
return false; return false;

Loading…
Cancel
Save