From ab86f04c5ed385eafcd9099fa4ca50fd2f4c5c33 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Mon, 3 Nov 2014 17:02:47 -0800 Subject: Remove provider icon from InCallUI. Because we are now using the SIM color to designate which SIM is being used in the InCallUI, we are removing the icon from the primary and secondary call info fields. Bug: 18204058 Change-Id: Ibc0b74ce2a104e7aa506a2d200c0e1b9997df7d5 --- InCallUI/res/layout/secondary_call_info.xml | 8 -------- .../src/com/android/incallui/CallCardFragment.java | 7 +------ .../src/com/android/incallui/CallCardPresenter.java | 21 ++++----------------- .../src/com/android/incallui/InCallActivity.java | 5 +++-- 4 files changed, 8 insertions(+), 33 deletions(-) diff --git a/InCallUI/res/layout/secondary_call_info.xml b/InCallUI/res/layout/secondary_call_info.xml index 8666c2ae8..a1d12a4df 100644 --- a/InCallUI/res/layout/secondary_call_info.xml +++ b/InCallUI/res/layout/secondary_call_info.xml @@ -69,14 +69,6 @@ android:orientation="horizontal" android:visibility="gone" > - - final boolean nameIsNumber = nameForCall != null && nameForCall.equals( mSecondaryContactInfo.number); ui.setSecondary(true /* show */, nameForCall, nameIsNumber, mSecondaryContactInfo.label, - getCallProviderLabel(mSecondary), getCallProviderIcon(mSecondary), - isConference, canManageConference); + getCallProviderLabel(mSecondary), isConference, canManageConference); } else { // reset to nothing so that it starts off blank next time we use it. - ui.setSecondary(false, null, false, null, null, null, isConference, canManageConference); + ui.setSecondary(false, null, false, null, null, isConference, canManageConference); } } @@ -532,17 +531,6 @@ public class CallCardPresenter extends Presenter return null; } - /** - * Return the Drawable object of the icon to display to the left of the connection label. - */ - private Drawable getCallProviderIcon(Call call) { - PhoneAccount account = getAccountForCall(call); - if (account != null && getTelecomManager().hasMultipleCallCapableAccounts()) { - return account.getIcon(mContext); - } - return null; - } - /** * Return the string label to represent the call provider */ @@ -587,7 +575,7 @@ public class CallCardPresenter extends Presenter return icon; } } - return getCallProviderIcon(mPrimary); + return null; } private boolean hasOutgoingGatewayCall() { @@ -671,8 +659,7 @@ public class CallCardPresenter extends Presenter Drawable photo, boolean isConference, boolean canManageConference, boolean isSipCall); void setSecondary(boolean show, String name, boolean nameIsNumber, String label, - String providerLabel, Drawable providerIcon, boolean isConference, - boolean canManageConference); + String providerLabel, boolean isConference, boolean canManageConference); void setCallState(int state, int videoState, int sessionModificationState, DisconnectCause disconnectCause, String connectionLabel, Drawable connectionIcon, String gatewayNumber); diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index 2ccf59886..1444b11ce 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -552,8 +552,9 @@ public class InCallActivity extends Activity { } }; - SelectPhoneAccountDialogFragment.showAccountDialog(getFragmentManager(), true, - phoneAccountHandles, listener); + SelectPhoneAccountDialogFragment.showAccountDialog(getFragmentManager(), + R.string.select_phone_account_for_calls, true, phoneAccountHandles, + listener); } else { mCallCardFragment.setVisible(true); } -- cgit v1.2.3