Avoid crash in unbindService()

This commit is contained in:
seven332 committed 2019-01-16 18:46:47 +08:00
1 parent e8eb126135
commit 7228736c95
1 file changed
+10
@@ -384,4 +384,14 @@ public class EhApplication extends RecordingApplication {
return false;
}
}
// Avoid crash on some "energy saving" devices
@Override
public void unbindService(ServiceConnection conn) {
try {
super.unbindService(conn);
} catch (Throwable t) {
ExceptionUtils.throwIfFatal(t);
}
}
}