From f75eb1ac9c28f1777ac375666b731d08630dbf1d Mon Sep 17 00:00:00 2001 From: Tony Mak Date: Thu, 19 May 2016 10:23:32 +0100 Subject: Rename PROPERTY_WORK_CALL to PROPERTY_ENTERPRISE_CALL based on API review Bug: 28842878 Change-Id: I52684f898137d7b07c4b9a7ac34081b3d5ec79da --- InCallUI/src/com/android/incallui/CallCardPresenter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'InCallUI/src/com/android/incallui/CallCardPresenter.java') diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index d0762fdd0..10bf5e612 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -58,7 +58,7 @@ import com.android.incalluibind.ObjectFactory; import java.lang.ref.WeakReference; -import static com.android.contacts.common.compat.CallSdkCompat.Details.PROPERTY_WORK_CALL; +import static com.android.contacts.common.compat.CallSdkCompat.Details.PROPERTY_ENTERPRISE_CALL; /** * Presenter for the Call Card Fragment. *

@@ -427,7 +427,7 @@ public class CallCardPresenter extends Presenter private void updatePrimaryCallState() { if (getUi() != null && mPrimary != null) { - boolean isWorkCall = mPrimary.hasProperty(PROPERTY_WORK_CALL) + boolean isWorkCall = mPrimary.hasProperty(PROPERTY_ENTERPRISE_CALL) || (mPrimaryContactInfo == null ? false : mPrimaryContactInfo.userType == ContactsUtils.USER_TYPE_WORK); getUi().setCallState( @@ -759,7 +759,7 @@ public class CallCardPresenter extends Presenter .showIncomingVideo(mPrimary.getVideoState(), mPrimary.getState()); // Call placed through a work phone account. - boolean hasWorkCallProperty = mPrimary.hasProperty(PROPERTY_WORK_CALL); + boolean hasWorkCallProperty = mPrimary.hasProperty(PROPERTY_ENTERPRISE_CALL); if (mPrimary.isConferenceCall()) { Log.d(TAG, "Update primary display info for conference call."); -- cgit v1.2.3