diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java index 350cee200..2a4e745fd 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java @@ -193,7 +193,7 @@ public final class Tools { if(Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return; NotificationChannel channel = new NotificationChannel( context.getString(R.string.notif_channel_id), - context.getString(R.string.notif_channel_name), NotificationManager.IMPORTANCE_HIGH); + context.getString(R.string.notif_channel_name), NotificationManager.IMPORTANCE_DEFAULT); NotificationManagerCompat manager = NotificationManagerCompat.from(context); manager.createNotificationChannel(channel); } diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/GameService.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/GameService.java index 10575ef4d..3b55c815d 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/GameService.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/GameService.java @@ -49,7 +49,8 @@ public class GameService extends Service { .setContentTitle(getString(R.string.lazy_service_default_title)) .setContentText(getString(R.string.notification_game_runs)) .addAction(android.R.drawable.ic_menu_close_clear_cancel, getString(R.string.notification_terminate), pendingKillIntent) - .setSmallIcon(R.mipmap.ic_launcher_round); + .setSmallIcon(R.mipmap.ic_launcher_round) + .setNotificationSilent(); startForeground(2, notificationBuilder.build()); return START_NOT_STICKY; // non-sticky so android wont try restarting the game after the user uses the "Quit" button } diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/ProgressService.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/ProgressService.java index b3912fa88..dd6685f0f 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/ProgressService.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/services/ProgressService.java @@ -49,7 +49,8 @@ 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_round); + .setSmallIcon(R.mipmap.ic_launcher_round) + .setNotificationSilent(); } @Override