Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
make spoiler height independent of content
Browse files Browse the repository at this point in the history
fixes #12, fixes mastodon#166
  • Loading branch information
sk22 committed Nov 7, 2022
1 parent 1ac6a04 commit 9f3f5ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void onBind(TextStatusDisplayItem item){
itemView.setClickable(false);
}else{
spoilerOverlay.setVisibility(View.VISIBLE);
text.setVisibility(View.INVISIBLE);
text.setVisibility(View.GONE);
itemView.setClickable(true);
}
}else{
Expand Down
1 change: 1 addition & 0 deletions mastodon/src/main/res/layout/display_item_text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f3f5ca

Please sign in to comment.