Simplify layout and do not display until data is loaded to prevent flashing.

This commit is contained in:
Alex Hart 2022-04-11 13:20:28 -03:00 committed by Greyson Parrelli
parent 31e4db2186
commit 33b88796e8
2 changed files with 5 additions and 8 deletions

View file

@ -120,6 +120,7 @@ class StoryTextPostView @JvmOverloads constructor(
}
fun bindFromStoryTextPost(storyTextPost: StoryTextPost) {
visible = true
linkPreviewView.visible = false
textAlignment = TextAlignment.CENTER

View file

@ -1,10 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<org.thoughtcrime.securesms.stories.StoryTextPostView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/story_text_post"
android:layout_width="match_parent"
android:layout_height="match_parent">
<org.thoughtcrime.securesms.stories.StoryTextPostView
android:id="@+id/story_text_post"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
android:layout_height="match_parent"
android:visibility="gone" />