Add follow setting button

This commit is contained in:
andrew 2023-12-06 12:31:59 +10:30
parent 71b2f1ed6a
commit c60b6d9ba2
2 changed files with 13 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class ControlMessageView : LinearLayout {
binding.dateBreakTextView.showDateBreak(message, previous)
binding.iconImageView.isGone = true
binding.expirationTimerView.isGone = true
binding.followSetting.isGone = true
var messageBody: CharSequence = message.getDisplayBody(context)
binding.root.contentDescription= null
when {
@ -37,6 +38,8 @@ class ControlMessageView : LinearLayout {
isVisible = true
setExpirationTime(message.expireStarted, message.expiresIn)
}
binding.followSetting.isGone = message.isOutgoing
}
message.isMediaSavedNotification -> {
binding.iconImageView.apply {

View File

@ -50,4 +50,14 @@
android:textStyle="bold"
tools:text="@string/MessageRecord_you_disabled_disappearing_messages" />
<TextView
android:id="@+id/followSetting"
style="@style/Widget.Session.Button.Common.Borderless"
android:layout_marginTop="4dp"
android:textColor="@color/accent_green"
android:textSize="@dimen/very_small_font_size"
android:text="Follow Setting"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>