Simplify layout and do not display until data is loaded to prevent flashing.
This commit is contained in:
parent
31e4db2186
commit
33b88796e8
2 changed files with 5 additions and 8 deletions
|
@ -120,6 +120,7 @@ class StoryTextPostView @JvmOverloads constructor(
|
|||
}
|
||||
|
||||
fun bindFromStoryTextPost(storyTextPost: StoryTextPost) {
|
||||
visible = true
|
||||
linkPreviewView.visible = false
|
||||
|
||||
textAlignment = TextAlignment.CENTER
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Add table
Reference in a new issue