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

Commit 9976314d authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

Merge branch '4982-Hide_blank_star_from_mailList' into 'main'

4982-Hide_blank_star_from_mailList

See merge request e/apps/mail!52
parents 0275374a be3fce72
Loading
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -124,9 +124,9 @@ class MessageListAdapter internal constructor(
        appearance.fontSizes.setViewTextSize(holder.preview, appearance.fontSizes.messageListPreview)
        appearance.fontSizes.setViewTextSize(holder.threadCount, appearance.fontSizes.messageListSubject) // thread count is next to subject

        holder.flagged.isVisible = appearance.stars
        holder.flagged.isVisible = false
        holder.flagged.tag = holder
        holder.flagged.setOnClickListener(flagClickListener)
        holder.flagged.setOnClickListener(null)

        view.tag = holder

@@ -167,7 +167,9 @@ class MessageListAdapter internal constructor(
            }

            if (appearance.stars) {
                holder.flagged.isChecked = isStarred
                holder.flagged.isVisible = isStarred
            } else {
                holder.flagged.isVisible = false
            }
            holder.position = position
            if (appearance.showContactPicture && holder.contactPicture.isVisible) {
+3 −2
Original line number Diff line number Diff line
@@ -147,14 +147,15 @@

            <CheckBox
                android:id="@+id/star"
                style="@style/MessageStarStyle"
                android:buttonTint="@color/star_color"
                android:button="@drawable/ic_star"
                android:buttonTint="@lineageos.platform:color/color_default_orange1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingTop="2dp"
                android:paddingBottom="2dp"
                android:layout_marginEnd="8dp"
                android:focusable="false"
                android:enabled="false"
                android:visibility="visible"
                android:gravity="center_vertical"
                tools:text="&#x200B;"/>