Fix FC audio call
This commit is contained in:
parent
bd2c8845c8
commit
e4fbe64162
2 changed files with 6 additions and 6 deletions
|
@ -105,7 +105,7 @@ public class AudioCallFragment extends Fragment implements OnClickListener {
|
||||||
|
|
||||||
setContactName(callView, lAddress, sipUri, resources);
|
setContactName(callView, lAddress, sipUri, resources);
|
||||||
boolean hide = displayCallStatusIconAndReturnCallPaused(callView, call);
|
boolean hide = displayCallStatusIconAndReturnCallPaused(callView, call);
|
||||||
displayOrHideContactPictureAndStats(callView, pictureUri, call, hide);
|
displayOrHideContactPictureAndStats(resources, callView, pictureUri, call, hide);
|
||||||
setRowBackgroundAndPadding(callView, resources, index, call, !hide);
|
setRowBackgroundAndPadding(callView, resources, index, call, !hide);
|
||||||
registerCallDurationTimer(callView, call);
|
registerCallDurationTimer(callView, call);
|
||||||
previousCallIsActive = !hide;
|
previousCallIsActive = !hide;
|
||||||
|
@ -154,7 +154,7 @@ public class AudioCallFragment extends Fragment implements OnClickListener {
|
||||||
return isCallPaused || isInConference;
|
return isCallPaused || isInConference;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayOrHideContactPictureAndStats(LinearLayout callView, Uri pictureUri, LinphoneCall call, boolean hide) {
|
private void displayOrHideContactPictureAndStats(Resources resources, LinearLayout callView, Uri pictureUri, LinphoneCall call, boolean hide) {
|
||||||
ViewFlipper flipper = (ViewFlipper) callView.findViewById(R.id.flipper);
|
ViewFlipper flipper = (ViewFlipper) callView.findViewById(R.id.flipper);
|
||||||
flipper.setDisplayedChild(FLIPPER_AVATAR_VIEW);
|
flipper.setDisplayedChild(FLIPPER_AVATAR_VIEW);
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ public class AudioCallFragment extends Fragment implements OnClickListener {
|
||||||
flipper.setVisibility(View.GONE);
|
flipper.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getActivity().getResources().getBoolean(R.bool.display_call_stats)) {
|
if (resources.getBoolean(R.bool.display_call_stats)) {
|
||||||
View audioCallstats = callView.findViewById(R.id.audioCallStats);
|
View audioCallstats = callView.findViewById(R.id.audioCallStats);
|
||||||
if (call != null) {
|
if (call != null) {
|
||||||
flipper.setEnabled(true);
|
flipper.setEnabled(true);
|
||||||
|
|
|
@ -456,9 +456,9 @@ public class PreferencesFragment extends PreferencesListFragment implements EcCa
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initializeMediaEncryptionPreferences() {
|
private void initializeMediaEncryptionPreferences() {
|
||||||
LinphoneCore lc=LinphoneManager.getLc();
|
LinphoneCore lc = LinphoneManager.getLc();
|
||||||
boolean hasZrtp=lc.mediaEncryptionSupported(MediaEncryption.ZRTP);
|
boolean hasZrtp = lc.mediaEncryptionSupported(MediaEncryption.ZRTP);
|
||||||
boolean hasSrtp=lc.mediaEncryptionSupported(MediaEncryption.SRTP);
|
boolean hasSrtp = lc.mediaEncryptionSupported(MediaEncryption.SRTP);
|
||||||
if (!hasSrtp && !hasZrtp){
|
if (!hasSrtp && !hasZrtp){
|
||||||
mencPref.setEnabled(false);
|
mencPref.setEnabled(false);
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in a new issue