Merge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance"
This commit is contained in:
@@ -2925,7 +2925,7 @@ public class TelephonyManager {
|
|||||||
IPhoneSubInfo info = getSubscriberInfo();
|
IPhoneSubInfo info = getSubscriberInfo();
|
||||||
if (info == null)
|
if (info == null)
|
||||||
return null;
|
return null;
|
||||||
return info.getGroupIdLevel1(mContext.getOpPackageName());
|
return info.getGroupIdLevel1ForSubscriber(getSubId(), mContext.getOpPackageName());
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
return null;
|
return null;
|
||||||
} catch (NullPointerException ex) {
|
} catch (NullPointerException ex) {
|
||||||
|
|||||||
@@ -67,11 +67,6 @@ interface IPhoneSubInfo {
|
|||||||
*/
|
*/
|
||||||
String getSubscriberIdForSubscriber(int subId, String callingPackage);
|
String getSubscriberIdForSubscriber(int subId, String callingPackage);
|
||||||
|
|
||||||
/**
|
|
||||||
* Retrieves the Group Identifier Level1 for GSM phones.
|
|
||||||
*/
|
|
||||||
String getGroupIdLevel1(String callingPackage);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the Group Identifier Level1 for GSM phones of a subId.
|
* Retrieves the Group Identifier Level1 for GSM phones of a subId.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user