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

am: 90544355cd

Change-Id: I4fe4009ffd33e2610d0c4bc8382ae8534c07a661
This commit is contained in:
Bonian Chen
2019-12-16 06:12:53 -08:00
committed by android-build-merger

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;