diff options
author | Tyler Gunn <tgunn@google.com> | 2015-11-09 21:47:37 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-11-09 21:47:37 +0000 |
commit | 84cb3c5c4051bb6a783fb2e3abdf8aedadf4f8f2 (patch) | |
tree | 8afc3b5871549368554d5c7472db81a947e33d4e | |
parent | 9ddafc17b6e20f986acd3c45b8563547aad44a0d (diff) | |
parent | 96addb385be53b07ee821bfe757627d985bd9722 (diff) |
Show child number in incoming call notification. am: 2e5cfc1a71 am: 8af424c54d am: 758739a7d9
am: 98ece9fa1c
* commit '98ece9fa1c796514badcd60a2a810d5d938fb3c9':
Show child number in incoming call notification.
-rw-r--r-- | InCallUI/src/com/android/incallui/StatusBarNotifier.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java index ee6afb318..86674449d 100644 --- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java +++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java @@ -440,10 +440,14 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener, boolean isIncomingOrWaiting = call.getState() == Call.State.INCOMING || call.getState() == Call.State.CALL_WAITING; - if (isIncomingOrWaiting && !TextUtils.isEmpty(call.getCallSubject()) && - call.getNumberPresentation() == TelecomManager.PRESENTATION_ALLOWED && - call.isCallSubjectSupported()) { - return call.getCallSubject(); + if (isIncomingOrWaiting && + call.getNumberPresentation() == TelecomManager.PRESENTATION_ALLOWED) { + + if (!TextUtils.isEmpty(call.getChildNumber())) { + return mContext.getString(R.string.child_number, call.getChildNumber()); + } else if (!TextUtils.isEmpty(call.getCallSubject()) && call.isCallSubjectSupported()) { + return call.getCallSubject(); + } } int resId = R.string.notification_ongoing_call; |