Merge "[Settings] Remove access of TelecomManager.from()"

This commit is contained in:
Treehugger Robot
2019-12-16 13:04:24 +00:00
committed by Gerrit Code Review

View File

@@ -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;