summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRavindra <c_rthat@codeaurora.org>2014-11-03 11:46:59 +0530
committerArne Coucheron <arco68@gmail.com>2014-12-13 01:45:22 +0100
commitf6c312b5afcc781ad0a16da0666c3399599c0695 (patch)
tree35c3d985a2870f9cc93ea4e336291f353db3f78b /src
parent7d41fe2e827089ec054f3956c2307937299e6fbe (diff)
downloadpackages_apps_InCallUI-f6c312b5afcc781ad0a16da0666c3399599c0695.tar.gz
packages_apps_InCallUI-f6c312b5afcc781ad0a16da0666c3399599c0695.tar.bz2
packages_apps_InCallUI-f6c312b5afcc781ad0a16da0666c3399599c0695.zip
Display sub details on incoming call
When incoming call arrives display the subscription on which the call has arrived to the user. Change-Id: Ib9f13fc5c674739ccc8acfd87b7c3de32b810474 CRs-Fixed: 722427
Diffstat (limited to 'src')
-rw-r--r--src/com/android/incallui/StatusBarNotifier.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/incallui/StatusBarNotifier.java b/src/com/android/incallui/StatusBarNotifier.java
index 929ccbfc..3c21a520 100644
--- a/src/com/android/incallui/StatusBarNotifier.java
+++ b/src/com/android/incallui/StatusBarNotifier.java
@@ -306,6 +306,17 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener {
builder.setLargeIcon(largeIcon);
builder.setColor(mContext.getResources().getColor(R.color.dialer_theme_color));
+ if (TelephonyManager.getDefault().isMultiSimEnabled()) {
+ final long subId = call.getSubId();
+ SubInfoRecord subInfoRecord = SubscriptionManager.getSubInfoForSubscriber(subId);
+ if (subInfoRecord != null) {
+ String displayName = subInfoRecord.displayName;
+ builder.setContentTitle(displayName);
+ builder.setContentText(contentTitle);
+ builder.setSubText(mContext.getString(contentResId));
+ }
+ }
+
if (isVideoUpgradeRequest) {
builder.setUsesChronometer(false);
addDismissUpgradeRequestAction(builder);