[UI] Fix attachments view cut off on API 30+.

This commit is contained in:
Kuba Szczodrzyński 2021-09-10 17:11:21 +02:00
parent b9aca981e5
commit 83f84de019
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB
2 changed files with 3 additions and 2 deletions

View File

@ -80,6 +80,7 @@ class AttachmentsView @JvmOverloads constructor(
list.adapter = adapter
list.apply {
setHasFixedSize(false)
isNestedScrollingEnabled = false
layoutManager = LinearLayoutManager(context)
addItemDecoration(SimpleDividerItemDecoration(context))
}

View File

@ -57,7 +57,7 @@
android:visibility="visible"
tools:visibility="gone"/>
<ScrollView
<androidx.core.widget.NestedScrollView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="0dp"
@ -306,6 +306,6 @@
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
</layout>