summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-01-26 19:44:56 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-01-26 19:44:57 +0000
commitca75cacd1c49c5743aece1d9344a0f729b102979 (patch)
tree4feefd707af04e048706062ef0905c159341f610
parent6ad502310c2ada18805b678f2e8b3f3ec5b58d35 (diff)
parent6dfd1963ecc89ecb2c76793ab40af26e35654285 (diff)
Merge "Hide emergency callback number when slot2 SIM is default." into lmp-mr1-dev
-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;