Skip to content

Commit c93d535

Browse files
[Fix] Save new notification icon.
1 parent 53c45da commit c93d535

5 files changed

Lines changed: 3 additions & 13 deletions

File tree

app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/GameService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public int onStartCommand(Intent intent, int flags, int startId) {
4949
.setContentText(getString(R.string.notification_game_runs))
5050
.setContentIntent(contentIntent)
5151
.addAction(android.R.drawable.ic_menu_close_clear_cancel, getString(R.string.notification_terminate), pendingKillIntent)
52-
.setSmallIcon(R.mipmap.ic_launcher_foreground)
52+
.setSmallIcon(R.drawable.notif_icon)
5353
.setNotificationSilent();
5454

5555
Notification notification = notificationBuilder.build();

app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/ProgressService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void onCreate() {
5050
mNotificationBuilder = new NotificationCompat.Builder(this, "channel_id")
5151
.setContentTitle(getString(R.string.lazy_service_default_title))
5252
.addAction(android.R.drawable.ic_menu_close_clear_cancel, getString(R.string.notification_terminate), pendingKillIntent)
53-
.setSmallIcon(R.mipmap.ic_launcher_foreground)
53+
.setSmallIcon(R.drawable.notif_icon)
5454
.setNotificationSilent();
5555
}
5656

app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/NotificationUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void sendBasicNotification(Context context, int contentTitle, int
3434
if(contentTitle != -1) notificationBuilder.setContentTitle(context.getString(contentTitle));
3535
if(contentText != -1) notificationBuilder.setContentText(context.getString(contentText));
3636
if(actionIntent != null) notificationBuilder.setContentIntent(pendingIntent);
37-
notificationBuilder.setSmallIcon(R.mipmap.ic_launcher_foreground);
37+
notificationBuilder.setSmallIcon(R.drawable.notif_icon);
3838

3939
notificationManager.notify(notificationId, notificationBuilder.build());
4040
}
27.9 KB
Loading

app_pojavlauncher/src/main/res/drawable/notif_icon.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)