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

Commit

Permalink
Fix vertical alignment issues with rolling number.
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Nov 15, 2023
1 parent 69c503d commit 309e45e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ public enum Vote {
DisplayMetrics dp = Objects.requireNonNull(ReVancedUtils.getContext()).getResources().getDisplayMetrics();

leftSeparatorBounds = new Rect(0, 0,
(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 1.2f, dp),
(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 18, dp));
(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 1.2f, dp),
(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 18, dp));
final int middleSeparatorSize =
(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 3.7f, dp);
(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 3.7f, dp);
middleSeparatorBounds = new Rect(0, 0, middleSeparatorSize, middleSeparatorSize);
}

Expand Down Expand Up @@ -575,6 +575,7 @@ public void setUserVote(@NonNull Vote vote) {
class VerticallyCenteredImageSpan extends ImageSpan {
public VerticallyCenteredImageSpan(Drawable drawable) {
super(drawable);
// super(drawable, DynamicDrawableSpan.ALIGN_CENTER);
}

@Override
Expand Down

0 comments on commit 309e45e

Please sign in to comment.