summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui/VideoCallFragment.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/VideoCallFragment.java
parent61837ac821a8afb9defa71dccfb3e85cdeb1000b (diff)
Remove connection substate
Bug:20300433 Change-Id: Iec4a56229ee30f3183c9f4cf37bed3f028eed155
Diffstat (limited to 'InCallUI/src/com/android/incallui/VideoCallFragment.java')
-rw-r--r--InCallUI/src/com/android/incallui/VideoCallFragment.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/InCallUI/src/com/android/incallui/VideoCallFragment.java b/InCallUI/src/com/android/incallui/VideoCallFragment.java
index fb29c9ce6..6077017f5 100644
--- a/InCallUI/src/com/android/incallui/VideoCallFragment.java
+++ b/InCallUI/src/com/android/incallui/VideoCallFragment.java
@@ -595,58 +595,6 @@ public class VideoCallFragment extends BaseFragment<VideoCallPresenter,
}
/**
- * Displays a message on the UI that the call substate has changed.
- *
- */
- @Override
- public void showCallSubstateChanged(int callSubstate) {
- Log.d(this, "showCallSubstateChanged - call substate changed to " + callSubstate);
-
- final Context context = getActivity();
- if (context == null) {
- Log.e(this, "showCallSubstateChanged - Activity is null. Return");
- return;
- }
-
- final Resources resources = context.getResources();
-
- String callSubstateChangedText = "";
-
- if (isEnabled(Connection.SUBSTATE_AUDIO_CONNECTED_SUSPENDED, callSubstate)) {
- callSubstateChangedText +=
- resources.getString(R.string.call_substate_connected_suspended_audio);
- }
-
- if (isEnabled(Connection.SUBSTATE_VIDEO_CONNECTED_SUSPENDED, callSubstate)) {
- callSubstateChangedText +=
- resources.getString(R.string.call_substate_connected_suspended_video);
- }
-
- if (isEnabled(Connection.SUBSTATE_AVP_RETRY, callSubstate)) {
- callSubstateChangedText +=
- resources.getString(R.string.call_substate_avp_retry);
- }
-
- if (isNotEnabled(Connection.SUBSTATE_ALL, callSubstate)) {
- callSubstateChangedText = resources.getString(R.string.call_substate_call_resumed);
- }
-
- if (!callSubstateChangedText.isEmpty()) {
- String callSubstateLabelText = resources.getString(R.string.call_substate_label);
- Toast.makeText(context, callSubstateLabelText + callSubstateChangedText,
- Toast.LENGTH_SHORT).show();
- }
- }
-
- boolean isEnabled(int mask, int callSubstate) {
- return (mask & callSubstate) == mask;
- }
-
- boolean isNotEnabled(int mask, int callSubstate) {
- return (mask & callSubstate) == 0;
- }
-
- /**
* Cleans up the video telephony surfaces. Used when the presenter indicates a change to an
* audio-only state. Since the surfaces are static, it is important to ensure they are cleaned
* up promptly.