diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/CallActivity.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/CallActivity.java index 407b3df..691c60e 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/CallActivity.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/CallActivity.java @@ -1,12 +1,9 @@ package org.communiquons.android.comunic.client.ui.activities; import android.Manifest; -import android.content.pm.PackageManager; import android.os.AsyncTask; import android.os.Bundle; import android.support.annotation.Nullable; -import android.support.v4.app.ActivityCompat; -import android.support.v4.content.ContextCompat; import android.util.Log; import android.view.View; import android.view.ViewGroup; @@ -273,7 +270,11 @@ public class CallActivity extends BaseActivity implements SignalExchangerCallbac CallsConfiguration callsConfiguration = CallsHelper.GetCallsConfiguration(); - assert callsConfiguration != null; + if(callsConfiguration == null){ + Toast.makeText(this, R.string.err_missing_call_config, Toast.LENGTH_SHORT).show(); + return; + } + mSignalExchangerClient = new SignalExchangerClient(new SignalExchangerInitConfig( callsConfiguration.getSignalServerName(), callsConfiguration.getSignalServerPort(), diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 60b9889..1ecdeba 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -338,4 +338,5 @@ Enregistrer dans la gallerie Une erreur a survenue lors de l\'enregistrement de l\'image dans la gallerie ! L\'image a bien été enregistrée dans la gallerie ! + Configuration des appels vidéos manquante ! \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8225afc..5c4a91d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -337,4 +337,5 @@ Save in gallery Could not save the image in the gallery! Successfully saved the image into the gallery! + Missing call configuration!