make spoiler height independent of content
fixes #12, fixes mastodon/mastodon-android#166
This commit is contained in:
parent
1ac6a04a46
commit
9f3f5ca7c1
|
@ -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{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue