summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-01-26 19:51:23 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-26 19:51:23 +0000
commit34e3854f6d6dd5bb2c530f1ed44934d8aacf75af (patch)
tree4feefd707af04e048706062ef0905c159341f610
parent06d2d8f0478ab16342622dcad07ae9436a2058c6 (diff)
parentca75cacd1c49c5743aece1d9344a0f729b102979 (diff)
am 73be6292: Merge "Hide emergency callback number when slot2 SIM is default." into lmp-mr1-dev
* commit '73be6292cdbcc64476eb2eb8786dcea7c6c67ad3': Hide emergency callback number when slot2 SIM is default.
-rw-r--r--InCallUI/src/com/android/incallui/CallCardPresenter.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java
index 0d04f48f8..cb378a687 100644
--- a/InCallUI/src/com/android/incallui/CallCardPresenter.java
+++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java
@@ -340,9 +340,8 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi>
}
}
- TelephonyManager telephonyManager =
- (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
- String simNumber = telephonyManager.getLine1Number();
+ TelecomManager mgr = InCallPresenter.getInstance().getTelecomManager();
+ String simNumber = mgr.getLine1Number(mPrimary.getAccountHandle());
if (PhoneNumberUtils.compare(callbackNumber, simNumber)) {
Log.d(this, "Numbers are the same; not showing the callback number");
callbackNumber = null;