API Review PhoneManager -> TelecommManager. Rename methods (2/6)
PhoneManager
- handlePinMMI docs should explain what a Pin is and what MMI is
- rename isInAPhoneCall to isInCall
- rename showCallScreen to showInCallScreen
- merge this class into TelecommManager, we don't need both
Bug: 16960458
Change-Id: I8b7ed389c60ab074eb28d29d0fa8d9429e414875
diff --git a/src/com/android/contacts/common/CallUtil.java b/src/com/android/contacts/common/CallUtil.java
index dc1349c..ea53571 100644
--- a/src/com/android/contacts/common/CallUtil.java
+++ b/src/com/android/contacts/common/CallUtil.java
@@ -19,7 +19,6 @@
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
-import android.phone.PhoneManager;
import android.telecomm.PhoneAccountHandle;
import android.telecomm.TelecommManager;
import android.telecomm.VideoProfile;
@@ -152,13 +151,14 @@
}
public static boolean isVideoEnabled(Context context) {
- PhoneManager phoneMgr = (PhoneManager) context.getSystemService(Context.PHONE_SERVICE);
- if (phoneMgr == null) {
+ TelecommManager telecommMgr = (TelecommManager)
+ context.getSystemService(Context.TELECOMM_SERVICE);
+ if (telecommMgr == null) {
return false;
}
- // TODO: Check phoneManager for value instead.
- // return phoneMgr.isVideoEnabled();
+ // TODO: Check telecommManager for value instead.
+ // return telecommMgr.isVideoEnabled();
return false;
}
}