1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-21 16:35:09 -05:00

Use notification icon that matches the guidelines.

This commit is contained in:
Sebastian Kaspari 2015-04-06 00:00:24 +02:00
parent 3f4b2f2de3
commit 948ef762cd
5 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ public class IRCService extends Service
foreground = true;
// Set the icon, scrolling text and timestamp
notification = new Notification(R.mipmap.ic_launcher, getText(R.string.notification_running), System.currentTimeMillis());
notification = new Notification(R.drawable.ic_notification, getText(R.string.notification_running), System.currentTimeMillis());
// The PendingIntent to launch our activity if the user selects this notification
Intent notifyIntent = new Intent(this, MainActivity.class);
@ -221,7 +221,7 @@ public class IRCService extends Service
private void updateNotification(String text, String contentText, boolean vibrate, boolean sound, boolean light)
{
if (foreground) {
notification = new Notification(R.mipmap.ic_launcher, text, System.currentTimeMillis());
notification = new Notification(R.drawable.ic_notification, text, System.currentTimeMillis());
Intent notifyIntent = new Intent(this, MainActivity.class);
notifyIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notifyIntent, 0);

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB