commit | f8733b4827a4b9bc4a3d79c3173e0c35982adf6b | [log] [tgz] |
---|---|---|
author | Legler Wu <legler.wu@mediatek.com> | Thu Sep 25 11:00:54 2014 +0800 |
committer | Leo Wang <leozwang@google.com> | Thu Oct 02 21:16:29 2014 +0000 |
tree | 305a7c5ebb838cca60ca12d92e97ac0708e3d0f5 | |
parent | eb62620a0f06e8a797354e9a0b67c90dbe0db796 [diff] [blame] |
[DS] Mutilple SIM support on ITelephony interface getPhone should return the correct phone instance for MSIM. Review: https://partner-android-review.git.corp.google.com/#/c/183073 Change-Id: Ib8ccf14881262d49aad614b711e52c345d5d3849
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java index 014de15..50f5bca 100644 --- a/src/com/android/phone/PhoneInterfaceManager.java +++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -712,11 +712,8 @@ } // returns phone associated with the subId. - // getPhone(0) returns default phone in single SIM mode. private Phone getPhone(long subId) { - // FIXME: hack for the moment - return mPhone; - // return PhoneUtils.getPhoneForSubscriber(subId); + return PhoneFactory.getPhone(SubscriptionManager.getPhoneId(subId)); } // // Implementation of the ITelephony interface.