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:
parent
3f4b2f2de3
commit
948ef762cd
@ -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);
|
||||
|
BIN
app/src/main/res/drawable-hdpi/ic_notification.png
Executable file
BIN
app/src/main/res/drawable-hdpi/ic_notification.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 704 B |
BIN
app/src/main/res/drawable-mdpi/ic_notification.png
Executable file
BIN
app/src/main/res/drawable-mdpi/ic_notification.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 470 B |
BIN
app/src/main/res/drawable-xhdpi/ic_notification.png
Executable file
BIN
app/src/main/res/drawable-xhdpi/ic_notification.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 979 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_notification.png
Executable file
BIN
app/src/main/res/drawable-xxhdpi/ic_notification.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in New Issue
Block a user