fix ICE regression and fix blinking video statistics in StatusFragment
This commit is contained in:
parent
cf978c1a1c
commit
4f89dc65c7
2 changed files with 7 additions and 6 deletions
|
@ -68,6 +68,7 @@ public class StatusFragment extends Fragment {
|
||||||
private TimerTask mTask;
|
private TimerTask mTask;
|
||||||
private LinphoneCoreListenerBase mListener;
|
private LinphoneCoreListenerBase mListener;
|
||||||
private Dialog ZRTPdialog = null;
|
private Dialog ZRTPdialog = null;
|
||||||
|
private int mDisplayedQuality = -1;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||||
|
@ -271,12 +272,8 @@ public class StatusFragment extends Fragment {
|
||||||
mCallQualityUpdater = null;
|
mCallQualityUpdater = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int oldQuality = 0;
|
|
||||||
float newQuality = mCurrentCall.getCurrentQuality();
|
float newQuality = mCurrentCall.getCurrentQuality();
|
||||||
if ((int) newQuality != oldQuality) {
|
updateQualityOfSignalIcon(newQuality);
|
||||||
updateQualityOfSignalIcon(newQuality);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isInCall) {
|
if (isInCall) {
|
||||||
refreshHandler.postDelayed(this, 1000);
|
refreshHandler.postDelayed(this, 1000);
|
||||||
|
@ -287,6 +284,9 @@ public class StatusFragment extends Fragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateQualityOfSignalIcon(float quality) {
|
void updateQualityOfSignalIcon(float quality) {
|
||||||
|
int iQuality = (int) quality;
|
||||||
|
|
||||||
|
if (iQuality == mDisplayedQuality) return;
|
||||||
if (quality >= 4) // Good Quality
|
if (quality >= 4) // Good Quality
|
||||||
{
|
{
|
||||||
callQuality.setImageResource(
|
callQuality.setImageResource(
|
||||||
|
@ -308,6 +308,7 @@ public class StatusFragment extends Fragment {
|
||||||
callQuality.setImageResource(
|
callQuality.setImageResource(
|
||||||
R.drawable.call_quality_indicator_0);
|
R.drawable.call_quality_indicator_0);
|
||||||
}
|
}
|
||||||
|
mDisplayedQuality = iQuality;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit cd3beba1c46a3e8b6bb33c762cdc062a2195aa8e
|
Subproject commit b0ea18f83cd642243c5a2e1690d5cf95bfe55000
|
Loading…
Reference in a new issue