Use framework scheme definitions
Use PhoneAccount defined values for SCHEME_{TEL, SIP, VOICEMAIL}.
Bug:17398074
Change-Id: I36adb16f659daef89957072f9e00d08ea2cb8e9e
diff --git a/src/com/android/phone/CallController.java b/src/com/android/phone/CallController.java
index a42f57d..a25b7a9 100644
--- a/src/com/android/phone/CallController.java
+++ b/src/com/android/phone/CallController.java
@@ -32,6 +32,7 @@
import android.os.Message;
import android.os.SystemProperties;
import android.provider.CallLog.Calls;
+import android.telecomm.PhoneAccount;
import android.telephony.PhoneNumberUtils;
import android.telephony.ServiceState;
import android.util.Log;
@@ -466,7 +467,8 @@
// app.cdmaOtaInCallScreenUiState.state are redundant.
// Combine them.
- boolean voicemailUriSpecified = scheme != null && scheme.equals("voicemail");
+ boolean voicemailUriSpecified = scheme != null &&
+ scheme.equals(PhoneAccount.SCHEME_VOICEMAIL);
// Check for an obscure ECM-related scenario: If the phone
// is currently in ECM (Emergency callback mode) and we
// dial a non-emergency number, that automatically