mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 13:28:26 +00:00
Add follow setting button
This commit is contained in:
parent
71b2f1ed6a
commit
c60b6d9ba2
@ -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 {
|
||||
|
@ -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>
|
Loading…
x
Reference in New Issue
Block a user