From c5d5be2d6dfb3cd98758cfbffebf80435428277d Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 25 Oct 2018 23:53:01 +0200 Subject: fix notification title of the custom branded version --- app/src/main/java/se/leap/bitmaskclient/VpnNotificationManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/se') diff --git a/app/src/main/java/se/leap/bitmaskclient/VpnNotificationManager.java b/app/src/main/java/se/leap/bitmaskclient/VpnNotificationManager.java index f4c7f682..503ba536 100644 --- a/app/src/main/java/se/leap/bitmaskclient/VpnNotificationManager.java +++ b/app/src/main/java/se/leap/bitmaskclient/VpnNotificationManager.java @@ -127,10 +127,11 @@ public class VpnNotificationManager { NotificationCompat.Action.Builder actionBuilder = new NotificationCompat.Action. Builder(R.drawable.ic_menu_close_clear_cancel, cancelString, getDisconnectIntent()); String title; + String appName = context.getString(R.string.app_name); if (isEmpty(profileName)) { - title = context.getString(R.string.app_name); + title = appName; } else { - title = context.getString(R.string.notifcation_title_bitmask, profileName); + title = context.getString(R.string.notifcation_title_bitmask, appName, profileName); } PendingIntent contentIntent; -- cgit v1.2.3