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

Commit 13509d0d authored by ewft's avatar ewft Committed by Moez Bhatti
Browse files

Dual SIM fixes an Improvement :


    Fix SIM ID in message view
    Add SIM name in message view
    Improve layout

Signed-off-by: default avatarewft <bnj@ewft.org>
parent 5512b344
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -226,7 +226,12 @@ class MessagesAdapter @Inject constructor(
        val simIndex = subs.takeIf { it.size > 1 }?.indexOfFirst { it.subscriptionId == message.subId } ?: -1

        holder.timestamp.text = dateFormatter.getMessageTimestamp(message.date)
        if (simIndex != -1){
            holder.simIndex.text = "${subs[simIndex].simSlotIndex + 1} - " + subs[simIndex].displayName
        } else {
            holder.simIndex.text = "${simIndex + 1}"
        }


        holder.timestamp.setVisible(timeSincePrevious >= BubbleUtils.TIMESTAMP_THRESHOLD
                || message.subId != previous?.subId && simIndex != -1)
+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@
        android:tint="?android:attr/textColorSecondary"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="@id/messageBackground"
        app:layout_constraintEnd_toStartOf="@id/send" />
        app:layout_constraintEnd_toEndOf="@id/messageBackground" />

    <com.moez.QKSMS.common.widget.QkTextView
        android:id="@+id/simIndex"