summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-03-17 14:28:21 -0700
committerYorke Lee <yorkelee@google.com>2015-03-17 14:28:21 -0700
commit19b4298121d5fcf6b69e972a37c5ddaad4dafa55 (patch)
treec8870f50d7c8e00cd44ab1434a4aaf41c97b06b9
parentcc630693631303cfb8c26a422466ae51cee49946 (diff)
Don't hide caller photo for video call
Bug: 19728020 Change-Id: I6e5259c63553de9e5060621bcc749d1039b67ea1
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java10
-rw-r--r--InCallUI/src/com/android/incallui/CallCardPresenter.java9
2 files changed, 0 insertions, 19 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java
index 1c520b842..e63e7a6a4 100644
--- a/InCallUI/src/com/android/incallui/CallCardFragment.java
+++ b/InCallUI/src/com/android/incallui/CallCardFragment.java
@@ -777,16 +777,6 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
}
/**
- * Changes the visibility of the contact photo.
- *
- * @param isVisible {@code True} if the UI should show the contact photo.
- */
- @Override
- public void setPhotoVisible(boolean isVisible) {
- mPhoto.setVisibility(isVisible ? View.VISIBLE : View.GONE);
- }
-
- /**
* Changes the visibility of the HD audio icon.
*
* @param visible {@code true} if the UI should show the HD audio icon.
diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java
index 3aecca4e8..139398a0c 100644
--- a/InCallUI/src/com/android/incallui/CallCardPresenter.java
+++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java
@@ -253,14 +253,6 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi>
getUi().showHdAudioIndicator(false);
}
- // Hide/show the contact photo based on the video state.
- // If the primary call is a video call on hold, still show the contact photo.
- // If the primary call is an active video call, hide the contact photo.
- if (mPrimary != null) {
- getUi().setPhotoVisible(!(mPrimary.isVideoCall(mContext) &&
- callState != Call.State.ONHOLD));
- }
-
maybeShowManageConferenceCallButton();
final boolean enableEndCallButton = Call.State.isConnectingOrConnected(callState) &&
@@ -797,7 +789,6 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi>
void setPrimaryLabel(String label);
void setEndCallButtonEnabled(boolean enabled, boolean animate);
void setCallbackNumber(String number, boolean isEmergencyCalls);
- void setPhotoVisible(boolean isVisible);
void setProgressSpinnerVisible(boolean visible);
void showHdAudioIndicator(boolean visible);
void showManageConferenceCallButton(boolean visible);