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

Commit b304ba5b authored by Eric Laurent's avatar Eric Laurent
Browse files

fix return from finally

Bug: 19709617.
Change-Id: I2c2e6ebe876e0e7e814554fa2ffc89551b3165b2
parent 8c6e4b39
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3084,9 +3084,8 @@ public class AudioManager {
            delay = service.setBluetoothA2dpDeviceConnectionState(device, state, profile);
        } catch (RemoteException e) {
            Log.e(TAG, "Dead object in setBluetoothA2dpDeviceConnectionState "+e);
        } finally {
            return delay;
        }
        return delay;
    }

    /** {@hide} */
+1 −2
Original line number Diff line number Diff line
@@ -68,9 +68,8 @@ public class AcousticEchoCanceler extends AudioEffect {
            Log.w(TAG, "not enough resources");
        } catch (RuntimeException e) {
            Log.w(TAG, "not enough memory");
        } finally {
            return aec;
        }
        return aec;
    }

    /**
+1 −2
Original line number Diff line number Diff line
@@ -68,9 +68,8 @@ public class AutomaticGainControl extends AudioEffect {
            Log.w(TAG, "not enough resources");
        } catch (RuntimeException e) {
            Log.w(TAG, "not enough memory");
        } finally {
            return agc;
        }
        return agc;
    }

    /**
+1 −2
Original line number Diff line number Diff line
@@ -70,9 +70,8 @@ public class NoiseSuppressor extends AudioEffect {
            Log.w(TAG, "not enough resources");
        } catch (RuntimeException e) {
            Log.w(TAG, "not enough memory");
        } finally {
            return ns;
        }
        return ns;
    }

    /**