diff options
author | Prerepa Viswanadham <dham@google.com> | 2015-04-10 17:36:37 -0700 |
---|---|---|
committer | Prerepa Viswanadham <dham@google.com> | 2015-04-10 17:36:37 -0700 |
commit | 45e90bba9886f85277c658023d7289b0863b9e84 (patch) | |
tree | da2c3359a3e3f74f1f5c6cb725c3860c9ad73d29 | |
parent | 7227d6e0f561fcf4aaa5f2390981404d0b4b9101 (diff) |
Fix build
Change-Id: I0c953bfa322ffe1be080af2180579e1abc770a2b
3 files changed, 18 insertions, 23 deletions
diff --git a/InCallUI/src/com/android/incallui/AnswerPresenter.java b/InCallUI/src/com/android/incallui/AnswerPresenter.java index 32c7b9a18..03c85538e 100644 --- a/InCallUI/src/com/android/incallui/AnswerPresenter.java +++ b/InCallUI/src/com/android/incallui/AnswerPresenter.java @@ -35,7 +35,8 @@ import java.util.List; */ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi> implements CallList.CallUpdateListener, InCallPresenter.InCallUiListener, - InCallPresenter.IncomingCallListener { + InCallPresenter.IncomingCallListener, + CallList.Listener { private static final String TAG = AnswerPresenter.class.getSimpleName(); @@ -54,7 +55,7 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi> } call = calls.getVideoUpgradeRequestCall(); Log.d(this, "getVideoUpgradeRequestCall call =" + call); - if (videoCall != null && call == null) { + if (call == null) { processVideoUpgradeRequestCall(call); } } else { @@ -69,26 +70,10 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi> @Override public void onIncomingCall(InCallState oldState, InCallState newState, Call call) { Log.d(this, "onIncomingCall: " + this); - if (!call.getId().equals(mCallId)) { - // A new call is coming in. - processIncomingCall(call); - } - } - - @Override - public void onDisconnect(Call call) { - // no-op - } - - @Override - public void onIncomingCall(Call call) { - // TODO: Ui is being destroyed when the fragment detaches. Need clean up step to stop - // getting updates here. - Log.d(this, "onIncomingCall: " + this); if (getUi() != null) { Call modifyCall = CallList.getInstance().getVideoUpgradeRequestCall(); if (modifyCall != null) { - getUi().showAnswerUi(false); + showAnswerUi(false); Log.d(this, "declining upgrade request id: "); CallList.getInstance().removeCallUpdateListener(mCallId, this); InCallPresenter.getInstance().declineUpgradeRequest(getUi().getContext()); @@ -97,10 +82,22 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi> // A new call is coming in. processIncomingCall(call); } ->>>>>>> 8bef461 } } + @Override + public void onIncomingCall(Call call) { + } + + @Override + public void onCallListChange(CallList list) { + } + + @Override + public void onDisconnect(Call call) { + // no-op + } + private boolean isVideoUpgradePending(Call call) { return call.getSessionModificationState() == Call.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST; diff --git a/InCallUI/src/com/android/incallui/VideoCallFragment.java b/InCallUI/src/com/android/incallui/VideoCallFragment.java index 233ff92a1..d0ef13a50 100644 --- a/InCallUI/src/com/android/incallui/VideoCallFragment.java +++ b/InCallUI/src/com/android/incallui/VideoCallFragment.java @@ -110,7 +110,7 @@ public class VideoCallFragment extends BaseFragment<VideoCallPresenter, * changes. */ private static class VideoCallSurface implements TextureView.SurfaceTextureListener, - View.OnClickListener { + View.OnClickListener, View.OnAttachStateChangeListener { private int mSurfaceId; private VideoCallPresenter mPresenter; private TextureView mTextureView; diff --git a/InCallUI/src/com/android/incallui/VideoCallPresenter.java b/InCallUI/src/com/android/incallui/VideoCallPresenter.java index e4a5db97a..43eef4b50 100644 --- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java +++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java @@ -71,8 +71,6 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi InCallVideoCallListenerNotifier.SessionModificationListener { public static final String TAG = "VideoCallPresenter"; - private static final String TAG = VideoCallPresenter.class.getSimpleName(); - public static final boolean DEBUG = false; /** |