Merge "[Settings] Remove access of TelecomManager.from()" am: 90544355cd
am: 0871f6bc97
am: 0419bccadc
Change-Id: I09b6f3bb2990d0b13c9cb58e4bfd7ad12d4178cd
This commit is contained in:
@@ -133,7 +133,8 @@ public class MobileNetworkUtils {
|
|||||||
*/
|
*/
|
||||||
public static boolean isWifiCallingEnabled(Context context, int subId) {
|
public static boolean isWifiCallingEnabled(Context context, int subId) {
|
||||||
final PhoneAccountHandle simCallManager =
|
final PhoneAccountHandle simCallManager =
|
||||||
TelecomManager.from(context).getSimCallManagerForSubscription(subId);
|
context.getSystemService(TelecomManager.class)
|
||||||
|
.getSimCallManagerForSubscription(subId);
|
||||||
final int phoneId = SubscriptionManager.getSlotIndex(subId);
|
final int phoneId = SubscriptionManager.getSlotIndex(subId);
|
||||||
|
|
||||||
boolean isWifiCallingEnabled;
|
boolean isWifiCallingEnabled;
|
||||||
|
Reference in New Issue
Block a user