hide video popup at the end of the timer
This commit is contained in:
parent
383c6a10fb
commit
d62252ed22
1 changed files with 4 additions and 1 deletions
|
@ -92,6 +92,7 @@ public class InCallActivity extends FragmentActivity implements OnClickListener
|
||||||
private Animation slideOutLeftToRight, slideInRightToLeft, slideInBottomToTop, slideInTopToBottom, slideOutBottomToTop, slideOutTopToBottom;
|
private Animation slideOutLeftToRight, slideInRightToLeft, slideInBottomToTop, slideInTopToBottom, slideOutBottomToTop, slideOutTopToBottom;
|
||||||
private CountDownTimer timer;
|
private CountDownTimer timer;
|
||||||
private boolean isVideoCallPaused = false;
|
private boolean isVideoCallPaused = false;
|
||||||
|
AcceptCallUpdateDialogFragment callUpdateDialog;
|
||||||
|
|
||||||
private TableLayout callsList;
|
private TableLayout callsList;
|
||||||
private LayoutInflater inflater;
|
private LayoutInflater inflater;
|
||||||
|
@ -192,6 +193,8 @@ public class InCallActivity extends FragmentActivity implements OnClickListener
|
||||||
timer = new CountDownTimer(SECONDS_BEFORE_DENYING_CALL_UPDATE, 1000) {
|
timer = new CountDownTimer(SECONDS_BEFORE_DENYING_CALL_UPDATE, 1000) {
|
||||||
public void onTick(long millisUntilFinished) { }
|
public void onTick(long millisUntilFinished) { }
|
||||||
public void onFinish() {
|
public void onFinish() {
|
||||||
|
if (callUpdateDialog != null)
|
||||||
|
callUpdateDialog.dismiss();
|
||||||
acceptCallUpdate(false);
|
acceptCallUpdate(false);
|
||||||
}
|
}
|
||||||
}.start();
|
}.start();
|
||||||
|
@ -1140,7 +1143,7 @@ public class InCallActivity extends FragmentActivity implements OnClickListener
|
||||||
|
|
||||||
private void showAcceptCallUpdateDialog() {
|
private void showAcceptCallUpdateDialog() {
|
||||||
FragmentManager fm = getSupportFragmentManager();
|
FragmentManager fm = getSupportFragmentManager();
|
||||||
AcceptCallUpdateDialogFragment callUpdateDialog = new AcceptCallUpdateDialogFragment();
|
callUpdateDialog = new AcceptCallUpdateDialogFragment();
|
||||||
callUpdateDialog.show(fm, "Accept Call Update Dialog");
|
callUpdateDialog.show(fm, "Accept Call Update Dialog");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue