summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui/CallCardFragment.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-05-11 14:14:59 -0700
committerTyler Gunn <tgunn@google.com>2015-05-11 14:14:59 -0700
commit63ce9a33a06df1ebc5c338afcae625b19bf6c40f (patch)
tree8b016b4a83280468153fbcf3cd97026a0b602627 /InCallUI/src/com/android/incallui/CallCardFragment.java
parent545b5acda593e85e3afd22fed2de89f0c1ed08b4 (diff)
Handle fullscreen mode toggle when tapping contact photo.
1. Moved the fullscreen mode state tracking and logic from VideoCallPresenter to InCallPresenter (since it is more to do with the entire InCall UI rather than just the video presenter). 2. Added click handler for the contact card to toggle fullscreen video mode. Bug: 20912417 Change-Id: If1656365f7fcfcee5a902c7f5d5d2862edee1661
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallCardFragment.java')
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java
index 611a1f4cb..43cec89de 100644
--- a/InCallUI/src/com/android/incallui/CallCardFragment.java
+++ b/InCallUI/src/com/android/incallui/CallCardFragment.java
@@ -23,7 +23,6 @@ import android.animation.LayoutTransition;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.Context;
-import android.content.res.Configuration;
import android.graphics.Point;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Drawable;
@@ -54,7 +53,6 @@ import android.widget.TextView;
import com.android.contacts.common.util.MaterialColorMapUtils.MaterialPalette;
import com.android.contacts.common.widget.FloatingActionButtonController;
-import com.android.incallui.service.PhoneNumberService;
import com.android.phone.common.animation.AnimUtils;
import java.util.List;
@@ -223,6 +221,12 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
mSecondaryCallInfo = view.findViewById(R.id.secondary_call_info);
mSecondaryCallProviderInfo = view.findViewById(R.id.secondary_call_provider_info);
mPhoto = (ImageView) view.findViewById(R.id.photo);
+ mPhoto.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ getPresenter().onContactPhotoClick();
+ }
+ });
mCallStateIcon = (ImageView) view.findViewById(R.id.callStateIcon);
mCallStateVideoCallIcon = (ImageView) view.findViewById(R.id.videoCallIcon);
mCallStateLabel = (TextView) view.findViewById(R.id.callStateLabel);