FP4-2257 remove notification title
Change-Id: I6994b7a41ace8237fe14b291aceeff603024ff35
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 71d76d6..2c3fb7b 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -31,6 +31,7 @@
<uses-permission android:name="android.permission.USER_ACTIVITY" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
+ <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" />
<application android:icon="@drawable/ic_launcher_sim_toolkit"
android:label="@string/app_name"
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index 23a24e3..526fb74 100644
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -1723,8 +1723,12 @@
} else {
builder.setContentTitle(menu.title);
}*/
- // add by T2M.zhangrenjie for FP4-2257 2021-08-20 end
+ Bundle extras = new Bundle();
+ extras.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, " ");
+ builder.addExtras(extras);
builder.setContentTitle("");
+ // add by T2M.zhangrenjie for FP4-2257 2021-08-20 end
+
builder.setSmallIcon(R.drawable.stat_notify_sim_toolkit);
builder.setOngoing(true);
builder.setOnlyAlertOnce(true);
@@ -2203,6 +2207,9 @@
} else {
notificationBuilder.setContentTitle("");
}*/
+ Bundle extras = new Bundle();
+ extras.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, " ");
+ notificationBuilder.addExtras(extras);
notificationBuilder.setContentTitle("");
// add by T2M.zhangrenjie for FP4-2257 2021-08-20 end
notificationBuilder