make spoiler height independent of content

fixes #12, fixes mastodon/mastodon-android#166
This commit is contained in:
sk 2022-11-07 17:32:37 +01:00
parent 1ac6a04a46
commit 9f3f5ca7c1
2 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class TextStatusDisplayItem extends StatusDisplayItem{
itemView.setClickable(false);
}else{
spoilerOverlay.setVisibility(View.VISIBLE);
text.setVisibility(View.INVISIBLE);
text.setVisibility(View.GONE);
itemView.setClickable(true);
}
}else{

View File

@ -20,6 +20,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingVertical="8dp"
android:orientation="vertical">
<TextView