Fix bug which displays "conf-factory.." string in dialer app.

+ Set ph. no. URI to null if it contains "conf-factory" substring in
telephony no. so that telecomm can handle it and avoid displaying it in
dialer.

Bug: 29441521
Change-Id: I1e84788c8c3c1c51e1336624592e03a80634bfa3
diff --git a/src/com/android/services/telephony/TelephonyConnection.java b/src/com/android/services/telephony/TelephonyConnection.java
index 7354b10..a65e9db 100644
--- a/src/com/android/services/telephony/TelephonyConnection.java
+++ b/src/com/android/services/telephony/TelephonyConnection.java
@@ -89,6 +89,8 @@
     private static final int MSG_CDMA_VOICE_PRIVACY_ON = 15;
     private static final int MSG_CDMA_VOICE_PRIVACY_OFF = 16;
 
+    private static final String CONF_CALL_SUBSTRING = "conf-factory";
+
     private final Handler mHandler = new Handler() {
         @Override
         public void handleMessage(Message msg) {
@@ -708,6 +710,9 @@
             if (!Objects.equals(address, getAddress()) ||
                     presentation != getAddressPresentation()) {
                 Log.v(this, "updateAddress, address changed");
+                if (address != null && address.toString().contains(CONF_CALL_SUBSTRING)) {
+                    address = null;
+                }
                 setAddress(address, presentation);
             }