From 90995fcb6778a9cb6dc35be12aeb1a5d0dcbb5ae Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Thu, 29 Aug 2013 19:37:04 -0700 Subject: Allow swapping calls by clicking on secondary call card Bug: 9679473 Change-Id: I9e25a247c59530d257ece27e62c88329eb5f4f61 --- InCallUI/src/com/android/incallui/CallCardFragment.java | 12 ++++++++++++ InCallUI/src/com/android/incallui/CallCardPresenter.java | 4 ++++ 2 files changed, 16 insertions(+) (limited to 'InCallUI/src/com/android/incallui') diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 2c0204c15..d880b973a 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -26,6 +26,7 @@ import android.text.TextUtils; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; +import android.view.View.OnClickListener; import android.view.ViewGroup; import android.view.ViewStub; import android.widget.ImageView; @@ -56,6 +57,7 @@ public class CallCardFragment extends BaseFragment mAudioModeProvider.addListener(this); } + public void secondaryPhotoClicked() { + CallCommandClient.getInstance().swap(); + } + public interface CallCardUi extends Ui { void setVisible(boolean on); void setPrimary(String number, String name, boolean nameIsNumber, String label, -- cgit v1.2.3