---
application/res/values/strings.xml | 1 +
application/src/org/yaaic/irc/IRCService.java | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/application/res/values/strings.xml
b/application/res/values/strings.xml
index 7c6c9d0..fe84700 100644
--- a/application/res/values/strings.xml
+++ b/application/res/values/strings.xml
@@ -122,6 +122,7 @@
<string name="command_desc_whois">Get information about a user</string>
<string name="notification_running">Yaaic is running</string>
+ <string name="notification_not_connected">Not connected</string>
<string name="notification_connected">Connected to %1$s</string>
<string name="notification_disconnected">Disconnected from %1$s</string>
<string name="notification_mentions">New messages in: %1$s</string>
diff --git a/application/src/org/yaaic/irc/IRCService.java
b/application/src/org/yaaic/irc/IRCService.java
index b7890d7..df1f9bc 100644
--- a/application/src/org/yaaic/irc/IRCService.java
+++ b/application/src/org/yaaic/irc/IRCService.java
@@ -197,7 +197,7 @@ public class IRCService extends Service
PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
notifyIntent, 0);
// Set the info for the views that show in the notification panel.
- notification.setLatestEventInfo(this, getText(R.string.app_name),
"", contentIntent);
+ notification.setLatestEventInfo(this, getText(R.string.app_name),
getText(R.string.notification_not_connected), contentIntent);
startForegroundCompat(FOREGROUND_NOTIFICATION, notification);
} else if (ACTION_BACKGROUND.equals(intent.getAction()) &&
!foreground) {
@@ -237,7 +237,7 @@ public class IRCService extends Service
}
contentText = getString(R.string.notification_connected,
sb.substring(0, sb.length()-2));
} else {
- contentText = "";
+ contentText =
getString(R.string.notification_not_connected);
}
}
--
1.7.2.5