Telecomm: Use Uri for handle
Change-Id: I7f3163da47159d68903ce45268429f5949203589
diff --git a/src/com/android/telecomm/CallActivity.java b/src/com/android/telecomm/CallActivity.java
index 2418a0a..06d4267 100644
--- a/src/com/android/telecomm/CallActivity.java
+++ b/src/com/android/telecomm/CallActivity.java
@@ -89,17 +89,8 @@
* @param intent Call intent containing data about the handle to call.
*/
private void processOutgoingCallIntent(Intent intent) {
- // TODO(santoscordon): Remove the toast.
- String toastContent = "[" + intent.getAction() + "] " + intent.getDataString();
- Toast.makeText(this, toastContent, Toast.LENGTH_LONG).show();
-
- // TODO(gilad): Pull the scheme etc. from the data string as well as any relevant extras
- // from the intent into structured data and invoke the corresponding CallsManager APIs
- // based on that. May want to add a static utility to perform that in case the logic is
- // non-trivial/voluminous.
- String handle = intent.getDataString();
ContactInfo contactInfo = null;
- mCallsManager.processOutgoingCallIntent(handle, contactInfo);
+ mCallsManager.processOutgoingCallIntent(intent.getData(), contactInfo);
}
/**