mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-30 10:50:47 +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.dateBreakTextView.showDateBreak(message, previous)
|
||||||
binding.iconImageView.isGone = true
|
binding.iconImageView.isGone = true
|
||||||
binding.expirationTimerView.isGone = true
|
binding.expirationTimerView.isGone = true
|
||||||
|
binding.followSetting.isGone = true
|
||||||
var messageBody: CharSequence = message.getDisplayBody(context)
|
var messageBody: CharSequence = message.getDisplayBody(context)
|
||||||
binding.root.contentDescription= null
|
binding.root.contentDescription= null
|
||||||
when {
|
when {
|
||||||
@ -37,6 +38,8 @@ class ControlMessageView : LinearLayout {
|
|||||||
isVisible = true
|
isVisible = true
|
||||||
setExpirationTime(message.expireStarted, message.expiresIn)
|
setExpirationTime(message.expireStarted, message.expiresIn)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
binding.followSetting.isGone = message.isOutgoing
|
||||||
}
|
}
|
||||||
message.isMediaSavedNotification -> {
|
message.isMediaSavedNotification -> {
|
||||||
binding.iconImageView.apply {
|
binding.iconImageView.apply {
|
||||||
|
@ -50,4 +50,14 @@
|
|||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
tools:text="@string/MessageRecord_you_disabled_disappearing_messages" />
|
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>
|
</LinearLayout>
|
Loading…
x
Reference in New Issue
Block a user