[DO NOT MERGE] Handle IllegalStateException in APM event handling.

Test: Manual
Bug: 204003158
Change-Id: I8cf2b091b9f323079f54a38dfc9ddfc8af512a43
This commit is contained in:
Joy Babafemi
2021-10-28 18:23:05 +00:00
parent f42de45da6
commit 7bde0926f7

View File

@@ -356,7 +356,7 @@ public class UwbServiceImpl extends IUwbAdapter.Stub implements IBinder.DeathRec
private void handleAirplaneModeEvent() {
try {
getVendorUwbAdapter().setEnabled(isEnabled());
} catch (RemoteException e) {
} catch (RemoteException | IllegalStateException e) {
Log.e(TAG, "Unable to set UWB Adapter state.", e);
}
}