Merge "[Settings] Remove access of TelecomManager.from()" am: 90544355cd am: 0871f6bc97

Change-Id: I992dfff13cca63e070a74066a78b53fb8fefe01d
This commit is contained in:
Automerger Merge Worker
2019-12-16 14:23:54 +00:00

View File

@@ -133,7 +133,8 @@ public class MobileNetworkUtils {
*/
public static boolean isWifiCallingEnabled(Context context, int subId) {
final PhoneAccountHandle simCallManager =
TelecomManager.from(context).getSimCallManagerForSubscription(subId);
context.getSystemService(TelecomManager.class)
.getSimCallManagerForSubscription(subId);
final int phoneId = SubscriptionManager.getSlotIndex(subId);
boolean isWifiCallingEnabled;