Fix dtls settings
This commit is contained in:
parent
d1173940b4
commit
7b9ebbf752
3 changed files with 7 additions and 2 deletions
|
@ -29,4 +29,5 @@ dtmf_player_amp=0.1
|
|||
|
||||
[misc]
|
||||
max_calls=10
|
||||
log_collection_upload_server_url=https://www.linphone.org:444/lft.php
|
||||
log_collection_upload_server_url=https://www.linphone.org:444/lft.php
|
||||
user_certificates_path=/data/data/org.linphone/files
|
|
@ -394,6 +394,7 @@ public class SettingsFragment extends PreferencesListFragment {
|
|||
boolean hasZrtp = lc.mediaEncryptionSupported(MediaEncryption.ZRTP);
|
||||
boolean hasSrtp = lc.mediaEncryptionSupported(MediaEncryption.SRTP);
|
||||
boolean hasDtls = lc.mediaEncryptionSupported(MediaEncryption.DTLS);
|
||||
|
||||
if (!hasSrtp && !hasZrtp && !hasDtls) {
|
||||
pref.setEnabled(false);
|
||||
} else {
|
||||
|
@ -845,6 +846,8 @@ public class SettingsFragment extends PreferencesListFragment {
|
|||
menc = MediaEncryption.SRTP;
|
||||
else if (value.equals(getString(R.string.pref_media_encryption_key_zrtp)))
|
||||
menc = MediaEncryption.ZRTP;
|
||||
else if (value.equals(getString(R.string.pref_media_encryption_key_dtls)))
|
||||
menc = MediaEncryption.DTLS;
|
||||
mPrefs.setMediaEncryption(menc);
|
||||
|
||||
preference.setSummary(mPrefs.getMediaEncryption().toString());
|
||||
|
|
|
@ -134,6 +134,7 @@ public class StatusFragment extends Fragment {
|
|||
});
|
||||
}
|
||||
// setMiniLedsForEachAccount();
|
||||
populateSliderContent();
|
||||
populateSliderContent();
|
||||
sliderContentAccounts.invalidate();
|
||||
} catch (IllegalStateException ise) {}
|
||||
|
@ -419,7 +420,7 @@ public class StatusFragment extends Fragment {
|
|||
background.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
if (mediaEncryption == MediaEncryption.SRTP || (mediaEncryption == MediaEncryption.ZRTP && call.isAuthenticationTokenVerified())) {
|
||||
if (mediaEncryption == MediaEncryption.SRTP || (mediaEncryption == MediaEncryption.ZRTP && call.isAuthenticationTokenVerified()) || mediaEncryption == MediaEncryption.DTLS) {
|
||||
encryption.setImageResource(R.drawable.security_ok);
|
||||
} else if (mediaEncryption == MediaEncryption.ZRTP && !call.isAuthenticationTokenVerified()) {
|
||||
encryption.setImageResource(R.drawable.security_pending);
|
||||
|
|
Loading…
Reference in a new issue