mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 19:02:17 -05:00
IRCService: Empty message as default notification
This commit is contained in:
parent
aa383411c5
commit
0743024ad9
@ -146,13 +146,13 @@ public class IRCService extends Service
|
|||||||
foreground = true;
|
foreground = true;
|
||||||
|
|
||||||
// Set the icon, scrolling text and timestamp
|
// Set the icon, scrolling text and timestamp
|
||||||
notification = new Notification(R.drawable.icon, "Connected", System.currentTimeMillis());
|
notification = new Notification(R.drawable.icon, "", System.currentTimeMillis());
|
||||||
|
|
||||||
// The PendingIntent to launch our activity if the user selects this notification
|
// The PendingIntent to launch our activity if the user selects this notification
|
||||||
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(this, ServersActivity.class), 0);
|
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(this, ServersActivity.class), 0);
|
||||||
|
|
||||||
// Set the info for the views that show in the notification panel.
|
// Set the info for the views that show in the notification panel.
|
||||||
notification.setLatestEventInfo(this, getText(R.string.app_name), "Connected", contentIntent);
|
notification.setLatestEventInfo(this, getText(R.string.app_name), "", contentIntent);
|
||||||
|
|
||||||
startForegroundCompat(R.string.app_name, notification);
|
startForegroundCompat(R.string.app_name, notification);
|
||||||
} else if (ACTION_BACKGROUND.equals(intent.getAction()) && !foreground) {
|
} else if (ACTION_BACKGROUND.equals(intent.getAction()) && !foreground) {
|
||||||
|
Loading…
Reference in New Issue
Block a user