diff options
author | Tony Mak <tonymak@google.com> | 2016-05-20 16:01:05 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-05-20 16:01:05 +0000 |
commit | 9791fa1807adc93e62dd7475002edb31ff3de408 (patch) | |
tree | bb430aadbeb98f36cdf8b5f396c09ad100056cde /InCallUI/src/com/android/incallui/CallCardPresenter.java | |
parent | b15db3f15c45bb9018667ce0c679da1329743d8c (diff) | |
parent | f75eb1ac9c28f1777ac375666b731d08630dbf1d (diff) |
Rename PROPERTY_WORK_CALL to PROPERTY_ENTERPRISE_CALL based on API review
am: f75eb1ac9c
* commit 'f75eb1ac9c28f1777ac375666b731d08630dbf1d':
Rename PROPERTY_WORK_CALL to PROPERTY_ENTERPRISE_CALL based on API review
Change-Id: I5ad7d6c4ea3eeac5b829beb1c984d25abdb059c2
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallCardPresenter.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardPresenter.java | 6 |
1 files changed, 3 insertions, 3 deletions
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. * <p> @@ -427,7 +427,7 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi> 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<CallCardPresenter.CallCardUi> .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."); |