Add icon indicating subscription in call log/call history

Display an icon in the call details showing which connection provider
(subscription) is responsible for the call.

Bug: 15473965

Change-Id: I0c6755864083799b8bafe20c3692b0d943beeee3
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index 8e873c8..da46a40 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -1108,7 +1108,9 @@
 
     @Override
     public void onCallNumberDirectly(String phoneNumber) {
-        Intent intent = CallUtil.getCallIntent(phoneNumber, getCallOrigin());
+        final Subscription subscription = mSubscriptionManager != null?
+                mSubscriptionManager.getCurrentSubscription(): null;
+        Intent intent = CallUtil.getCallIntent(phoneNumber, getCallOrigin(), subscription);
         DialerUtils.startActivityWithErrorToast(this, intent);
         mClearSearchOnPause = true;
     }