Avoid crash in unbindService()
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user