Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9e28093 authored by weichinweng's avatar weichinweng
Browse files

Handle RemoteException when getstate exception

Tag: #feature
Bug: 218313435
Test: Bluetooth on/off
      Let Bluetooth enable fail to check system status
Change-Id: I234b14aa40d9a464d0daf8a79b361332938f0ef6
parent 9d718b1d
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1163,11 +1163,8 @@ public final class BluetoothAdapter {
                mService.getState(recv);
                return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(state);
            }
        } catch (TimeoutException e) {
        } catch (RemoteException | TimeoutException e) {
            Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
        } catch (RemoteException e) {
            Log.e(TAG, "", e);
            e.rethrowFromSystemServer();
        } finally {
            mServiceLock.readLock().unlock();
        }