diff --git a/app/src/main/java/org/thoughtcrime/securesms/mediasend/v2/text/TextStoryPostCreationFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/mediasend/v2/text/TextStoryPostCreationFragment.kt
index 5027bdea0..1a9f30333 100644
--- a/app/src/main/java/org/thoughtcrime/securesms/mediasend/v2/text/TextStoryPostCreationFragment.kt
+++ b/app/src/main/java/org/thoughtcrime/securesms/mediasend/v2/text/TextStoryPostCreationFragment.kt
@@ -21,7 +21,6 @@ import org.thoughtcrime.securesms.util.navigation.safeNavigate
class TextStoryPostCreationFragment : Fragment(R.layout.stories_text_post_creation_fragment), TextStoryPostTextEntryFragment.Callback {
private lateinit var scene: ConstraintLayout
- private lateinit var linkButton: View
private lateinit var backgroundButton: AppCompatImageView
private lateinit var send: View
private lateinit var storyTextPostView: StoryTextPostView
@@ -53,11 +52,13 @@ class TextStoryPostCreationFragment : Fragment(R.layout.stories_text_post_creati
super.onViewCreated(view, savedInstanceState)
scene = view.findViewById(R.id.scene)
- linkButton = view.findViewById(R.id.add_link)
backgroundButton = view.findViewById(R.id.background_selector)
send = view.findViewById(R.id.send)
storyTextPostView = view.findViewById(R.id.story_text_post)
+ val backgroundProtection: View = view.findViewById(R.id.background_protection)
+ val addLinkProtection: View = view.findViewById(R.id.add_link_protection)
+
storyTextPostView.showCloseButton()
lifecycleDisposable.bindTo(viewLifecycleOwner)
@@ -97,11 +98,11 @@ class TextStoryPostCreationFragment : Fragment(R.layout.stories_text_post_creati
TextStoryPostTextEntryFragment().show(childFragmentManager, null)
}
- backgroundButton.setOnClickListener {
+ backgroundProtection.setOnClickListener {
viewModel.cycleBackgroundColor()
}
- linkButton.setOnClickListener {
+ addLinkProtection.setOnClickListener {
TextStoryPostLinkEntryFragment().show(childFragmentManager, null)
}
diff --git a/app/src/main/res/layout/stories_text_post_creation_fragment.xml b/app/src/main/res/layout/stories_text_post_creation_fragment.xml
index fe6bb8148..4d4b694a8 100644
--- a/app/src/main/res/layout/stories_text_post_creation_fragment.xml
+++ b/app/src/main/res/layout/stories_text_post_creation_fragment.xml
@@ -11,37 +11,58 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="12dp"
- app:layout_constraintVertical_bias="0"
app:layout_constraintBottom_toTopOf="@id/toggle_spacer"
app:layout_constraintDimensionRatio="9:16"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintVertical_bias="0" />
-
+
+
+
+