am 4eb18ffb: Merge "Improve STK idle mode text handling"
* commit '4eb18ffbd6348e34f648d4cc3c3d1f2dec3d68fe':
Improve STK idle mode text handling
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index 1212ea7..d98c14b 100644
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -780,7 +780,11 @@
final Notification.Builder notificationBuilder = new Notification.Builder(
StkAppService.this);
- notificationBuilder.setContentTitle("");
+ if (mMainCmd != null && mMainCmd.getMenu() != null) {
+ notificationBuilder.setContentTitle(mMainCmd.getMenu().title);
+ } else {
+ notificationBuilder.setContentTitle("");
+ }
notificationBuilder
.setSmallIcon(com.android.internal.R.drawable.stat_notify_sim_toolkit);
notificationBuilder.setContentIntent(pendingIntent);
@@ -788,6 +792,7 @@
// Set text and icon for the status bar and notification body.
if (!msg.iconSelfExplanatory) {
notificationBuilder.setContentText(msg.text);
+ notificationBuilder.setTicker(msg.text);
}
if (msg.icon != null) {
notificationBuilder.setLargeIcon(msg.icon);