mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-11 05:35:45 -04:00
[Fix] Save new notification icon.
This commit is contained in:
parent
53c45da2e5
commit
c93d53540a
@ -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();
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
BIN
app_pojavlauncher/src/main/res/drawable/notif_icon.png
Normal file
BIN
app_pojavlauncher/src/main/res/drawable/notif_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
@ -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>
|
Loading…
x
Reference in New Issue
Block a user