summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui/VideoCallPresenter.java
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2015-04-16 12:29:07 -0700
committerJay Shrauner <shrauner@google.com>2015-04-16 15:56:58 -0700
commit4835bf85d6908e55630d58d889f654acbfe011bb (patch)
treeb740a67eb7097c53fb067085940fd887a67db8e3 /InCallUI/src/com/android/incallui/VideoCallPresenter.java
parent61837ac821a8afb9defa71dccfb3e85cdeb1000b (diff)
Remove connection substate
Bug:20300433 Change-Id: Iec4a56229ee30f3183c9f4cf37bed3f028eed155
Diffstat (limited to 'InCallUI/src/com/android/incallui/VideoCallPresenter.java')
-rw-r--r--InCallUI/src/com/android/incallui/VideoCallPresenter.java22
1 files changed, 0 insertions, 22 deletions
diff --git a/InCallUI/src/com/android/incallui/VideoCallPresenter.java b/InCallUI/src/com/android/incallui/VideoCallPresenter.java
index b9aeacfd7..f11f328e6 100644
--- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java
@@ -158,11 +158,6 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
private static boolean mIsVideoMode = false;
- /**
- * Stores the current call substate.
- */
- private int mCurrentCallSubstate;
-
/** Handler which resets request state to NO_REQUEST after an interval. */
private Handler mSessionModificationResetHandler;
private static final long SESSION_MODIFICATION_RESET_DELAY_MS = 3000;
@@ -449,19 +444,6 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
showVideoUi(call.getVideoState(), call.getState());
}
- private void checkForCallSubstateChange(Call call) {
- if (mCurrentCallSubstate != call.getCallSubstate()) {
- VideoCallUi ui = getUi();
- if (ui == null) {
- Log.e(this, "Error VideoCallUi is null. Return.");
- return;
- }
- mCurrentCallSubstate = call.getCallSubstate();
- // Display a call substate changed message on UI.
- ui.showCallSubstateChanged(mCurrentCallSubstate);
- }
- }
-
private void cleanupSurfaces() {
final VideoCallUi ui = getUi();
if (ui == null) {
@@ -498,13 +480,11 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
private void updateCallCache(Call call) {
if (call == null) {
mCurrentVideoState = VideoProfile.VideoState.AUDIO_ONLY;
- mCurrentCallSubstate = Connection.SUBSTATE_NONE;
mCurrentCallState = Call.State.INVALID;
mVideoCall = null;
mPrimaryCall = null;
} else {
mCurrentVideoState = call.getVideoState();
- mCurrentCallSubstate = call.getCallSubstate();
mVideoCall = call.getVideoCall();
mCurrentCallState = call.getState();
mPrimaryCall = call;
@@ -529,7 +509,6 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
}
updateVideoCall(call);
- checkForCallSubstateChange(call);
updateCallCache(call);
}
@@ -1141,6 +1120,5 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
Point getScreenSize();
Point getPreviewSize();
void cleanupSurfaces();
- void showCallSubstateChanged(int callSubstate);
}
}