From 940b70ad14a6d6bde2bd9449cb95c27ac8ecdbb9 Mon Sep 17 00:00:00 2001 From: Suphon Thanakornpakapong Date: Mon, 27 Jun 2022 19:35:31 +0700 Subject: [PATCH] Use requestRebind instead of starting service --- .../e/blisslauncher/features/launcher/LauncherActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java index a23192abaf..7fad23b942 100755 --- a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java @@ -319,8 +319,7 @@ public class LauncherActivity extends AppCompatActivity implements } // Start NotificationService to add count badge to Icons - Intent notificationServiceIntent = new Intent(this, NotificationService.class); - startService(notificationServiceIntent); + NotificationService.requestRebind(new ComponentName(this, NotificationService.class)); createOrUpdateIconGrid(); addDefaultWidgets(); -- GitLab