Improve STK idle mode text handling

The STK idle mode text was not shown as a ticker text in the idle
mode screen, but only when you dragged down the notification bar
to read the notification. Moreover, the text was shown without any
title which made the context of this notification unclear.

Now it shows the STK title text as specified by the SIM card.

Change-Id: I0388bebad5d9da26e934a5552aa19d876cc5405c
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);