[Fix] Save new notification icon.

This commit is contained in:
Eva Isabella Luna 2025-05-30 19:55:34 -06:00
parent 53c45da2e5
commit c93d53540a
No known key found for this signature in database
GPG Key ID: 3716ACDC524F1879
5 changed files with 3 additions and 13 deletions

View File

@ -49,7 +49,7 @@ public class GameService extends Service {
.setContentText(getString(R.string.notification_game_runs))
.setContentIntent(contentIntent)
.addAction(android.R.drawable.ic_menu_close_clear_cancel, getString(R.string.notification_terminate), pendingKillIntent)
.setSmallIcon(R.mipmap.ic_launcher_foreground)
.setSmallIcon(R.drawable.notif_icon)
.setNotificationSilent();
Notification notification = notificationBuilder.build();

View File

@ -50,7 +50,7 @@ public class ProgressService extends Service implements TaskCountListener {
mNotificationBuilder = new NotificationCompat.Builder(this, "channel_id")
.setContentTitle(getString(R.string.lazy_service_default_title))
.addAction(android.R.drawable.ic_menu_close_clear_cancel, getString(R.string.notification_terminate), pendingKillIntent)
.setSmallIcon(R.mipmap.ic_launcher_foreground)
.setSmallIcon(R.drawable.notif_icon)
.setNotificationSilent();
}

View File

@ -34,7 +34,7 @@ public class NotificationUtils {
if(contentTitle != -1) notificationBuilder.setContentTitle(context.getString(contentTitle));
if(contentText != -1) notificationBuilder.setContentText(context.getString(contentText));
if(actionIntent != null) notificationBuilder.setContentIntent(pendingIntent);
notificationBuilder.setSmallIcon(R.mipmap.ic_launcher_foreground);
notificationBuilder.setSmallIcon(R.drawable.notif_icon);
notificationManager.notify(notificationId, notificationBuilder.build());
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -1,10 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="81.92dp"
android:height="81.92dp"
android:viewportWidth="81.92"
android:viewportHeight="81.92">
<path
android:fillColor="#FFFFFFFF"
android:pathData="m22.8,72.232c-6,-3.007 -12,-6.014 -18,-9.021v-44.485c12.053,-6.025 24.107,-12.051 36.16,-18.077 12.053,6.025 24.107,12.051 36.16,18.077v44.485c-12.078,6.024 -24.129,12.103 -36.241,18.059 -6.035,-2.997 -12.054,-6.023 -18.079,-9.039z"
android:strokeWidth=".32"/>
</vector>