Commit c5d5be2d authored by cyberta's avatar cyberta

fix notification title of the custom branded version

parent f751ebf9
Pipeline #20125 passed with stages
in 20 minutes and 44 seconds
......@@ -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;
<?xml version="1.0" encoding="utf-8"?>
<string name="notifcation_title_bitmask">Bitmask - %s</string>
<string name="notifcation_title_bitmask">%s - %s</string>
<string name="copyright_leapgui" translatable="false">Copyright 2012-2018\nLEAP Encryption Access Project &lt;></string>
<string name="opevpn_copyright" translatable="false">Copyright © 2002–2010 OpenVPN Technologies, Inc. &lt;>\n
"OpenVPN" is a trademark of OpenVPN Technologies, Inc.</string>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment