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

Commit 2b24f6e0 authored by William Escande's avatar William Escande Committed by Automerger Merge Worker
Browse files

Merge "Handle RemoteException when getstate exception" into tm-dev am: 37f74474

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/17106028

Change-Id: I2b11d96ce5c1891e92337dd38d6dc9400dcc0b0d
parents fcbadf8b 37f74474
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();
            }