diff options
author | Nancy Chen <nancychen@google.com> | 2015-01-26 19:44:56 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-01-26 19:44:57 +0000 |
commit | ca75cacd1c49c5743aece1d9344a0f729b102979 (patch) | |
tree | 4feefd707af04e048706062ef0905c159341f610 | |
parent | 6ad502310c2ada18805b678f2e8b3f3ec5b58d35 (diff) | |
parent | 6dfd1963ecc89ecb2c76793ab40af26e35654285 (diff) |
Merge "Hide emergency callback number when slot2 SIM is default." into lmp-mr1-dev
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardPresenter.java | 5 |
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; |