Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d7cc2e4 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Nishith Khanna
Browse files

fix(notificiation): Add wrapper component in the list of listener too

parent 3f229e17
Loading
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@ import com.android.launcher3.R;
import com.android.launcher3.notification.NotificationListener;
import com.android.launcher3.util.SettingsCache;

import foundation.e.blisslauncher.features.notification.NotificationService;

/**
 * A {@link Preference} for indicating notification dots status.
 * Also has utility methods for updating UI based on dots status changes.
@@ -136,9 +138,14 @@ public class NotificationDotsPreference extends Preference
                    getContext().getContentResolver(), NOTIFICATION_ENABLED_LISTENERS);
            ComponentName myListener =
                    new ComponentName(getContext(), NotificationListener.class);
            ComponentName myListener2 =
                    new ComponentName(getContext(), NotificationService.class);
            serviceEnabled = enabledListeners != null &&
                    (enabledListeners.contains(myListener.flattenToString()) ||
                            enabledListeners.contains(myListener.flattenToShortString()));
                            enabledListeners.contains(myListener.flattenToShortString()) ||
                    enabledListeners.contains(myListener2.flattenToString()) ||
                            enabledListeners.contains(myListener2.flattenToShortString()));

            if (!serviceEnabled) {
                summary = R.string.title_missing_notification_access;
            }