diff --git a/src/org/thoughtcrime/redphone/audio/CallAudioManager.java b/src/org/thoughtcrime/redphone/audio/CallAudioManager.java index b620ffce04..b66d8419c9 100644 --- a/src/org/thoughtcrime/redphone/audio/CallAudioManager.java +++ b/src/org/thoughtcrime/redphone/audio/CallAudioManager.java @@ -3,9 +3,6 @@ package org.thoughtcrime.redphone.audio; import android.os.Build; import android.util.Log; - -import org.thoughtcrime.securesms.R; - import java.io.FileDescriptor; import java.lang.reflect.Field; import java.net.DatagramSocket; @@ -44,9 +41,9 @@ public class CallAudioManager { public void start() throws AudioException { try { start(handle); - } catch (NativeAudioException e) { + } catch (NativeAudioException | NoSuchMethodError e) { Log.w(TAG, e); - throw new AudioException("sorry_there_was_a_problem_initializing_the_audio_on_your_device"); + throw new AudioException("Sorry, there was a problem initiating the audio on your device."); } } diff --git a/src/org/thoughtcrime/redphone/audio/NativeAudioException.java b/src/org/thoughtcrime/redphone/audio/NativeAudioException.java index 8e657f23f1..aad3045051 100644 --- a/src/org/thoughtcrime/redphone/audio/NativeAudioException.java +++ b/src/org/thoughtcrime/redphone/audio/NativeAudioException.java @@ -1,11 +1,21 @@ package org.thoughtcrime.redphone.audio; public class NativeAudioException extends Exception { + public NativeAudioException() { super(); } - public NativeAudioException(String message) { - super(message); + public NativeAudioException(String detailMessage) { + super(detailMessage); } + + public NativeAudioException(String detailMessage, Throwable throwable) { + super(detailMessage, throwable); + } + + public NativeAudioException(Throwable throwable) { + super(throwable); + } + }