[DO NOT MERGE] Handle IllegalStateException in APM event handling.
(Cherry-picked from sc-qpr branch) Test: Manual Bug: 204003158 Bug: 212462949 Change-Id: I8cf2b091b9f323079f54a38dfc9ddfc8af512a43
This commit is contained in:
committed by
Roshan Pius
parent
27019c7d95
commit
60a456a0a6
@@ -356,7 +356,7 @@ public class UwbServiceImpl extends IUwbAdapter.Stub implements IBinder.DeathRec
|
|||||||
private void handleAirplaneModeEvent() {
|
private void handleAirplaneModeEvent() {
|
||||||
try {
|
try {
|
||||||
getVendorUwbAdapter().setEnabled(isEnabled());
|
getVendorUwbAdapter().setEnabled(isEnabled());
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException | IllegalStateException e) {
|
||||||
Log.e(TAG, "Unable to set UWB Adapter state.", e);
|
Log.e(TAG, "Unable to set UWB Adapter state.", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user