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

Commit 3ef916f5 authored by Yash Garg's avatar Yash Garg 💬 Committed by Sahil Sonar
Browse files

fixme! feat(badges): show notification count in app badges

parent c5c30c28
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -106,5 +106,12 @@ class MultiModeController(val context: Context, val monitor: LauncherAppMonitor)
                    resources!!.getBoolean(R.bool.default_single_mode)
                )
            }

        @JvmStatic
        val isNotifCountEnabled: Boolean
            get() {
                throwIfControllerNotInit()
                return sharedPreferences!!.getBoolean(BlissPrefs.PREF_NOTIF_COUNT, true)
            }
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -9,4 +9,5 @@ package foundation.e.bliss.preferences

object BlissPrefs {
    const val PREF_SINGLE_LAYER_MODE = "pref_single_layer"
    const val PREF_NOTIF_COUNT = "pref_notif_count"
}
Compare f4cf39ac to 1e3404d8
Original line number Diff line number Diff line
Subproject commit f4cf39ac731389d256254c7eb2d61e417e7032b7
Subproject commit 1e3404d823b0a80228d13f841dcfea40f99f3406
+2 −2
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ public class BubbleView extends ConstraintLayout {
        mDrawParams.leftAlign = mOnLeft;
        mDrawParams.scale = mDotScale;

        mDotRenderer.draw(canvas, mDrawParams);
        mDotRenderer.draw(canvas, mDrawParams, -1);
    }

    /** Sets the bubble being rendered in this view. */
@@ -150,7 +150,7 @@ public class BubbleView extends ConstraintLayout {
        mBubbleIcon.setImageBitmap(bubble.getIcon());
        mAppIcon.setImageBitmap(bubble.getBadge());
        mDotColor = bubble.getDotColor();
        mDotRenderer = new DotRenderer(mBubbleSize, bubble.getDotPath(), DEFAULT_PATH_SIZE);
        mDotRenderer = new DotRenderer(mBubbleSize, bubble.getDotPath(), DEFAULT_PATH_SIZE, false, null);
    }

    /**
+1 −0
Original line number Diff line number Diff line
@@ -173,4 +173,5 @@
    <color name="material_color_primary">#445E91</color>
    <color name="material_color_secondary">#575E71</color>
    <color name="material_color_tertiary">#715573</color>
    <color name="notification_dot_bg">#44B04C</color>
</resources>
Loading