summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJordan Liu <jminjie@google.com>2020-08-12 11:49:48 -0700
committerJordan Liu <jminjie@google.com>2020-08-12 20:20:59 +0000
commit3bd92cda73f7d0c1ea093619f5d161a44edb094a (patch)
tree39706d92e7b805a5a63a80cf292c5c9dcca8ab41 /src
parent493c278b0c268c9f36ff8f826ec79d230fc8955f (diff)
downloadStk-3bd92cda73f7d0c1ea093619f5d161a44edb094a.tar.gz
Do not set notification title to app name
This aligns the behavior of lockscreen notifications with that of idle screen notifications (see line 2153: for notifications posted when screen is idle, we either set the notification title to the menu title (if we are currently handling an STK menu) or we set it to "".) Note that the app name will still be visible on the notifcation. Bug: 162908615 Test: manual Change-Id: I1944307dbddb8744123d34954ed5dcf0b5eddc6e
Diffstat (limited to 'src')
-rw-r--r--src/com/android/stk/StkAppService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index 8bac03e..5029e72 100644
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -1681,7 +1681,7 @@ public class StkAppService extends Service implements Runnable {
Menu menu = getMainMenu(slotId);
if (menu == null || TextUtils.isEmpty(menu.title)) {
- builder.setContentTitle(getResources().getString(R.string.app_name));
+ builder.setContentTitle("");
} else {
builder.setContentTitle(menu.title);
}