Skip to content

Commit

Permalink
fix(core): friend feed message preview
Browse files Browse the repository at this point in the history
  • Loading branch information
rhunk committed Apr 4, 2024
1 parent 0f041ec commit 5347c50
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ class FriendFeedMessagePreview : Feature("FriendFeedMessagePreview", loadParams
val secondaryTextSize = context.resources.getDimens("ff_feed_cell_secondary_text_size").toFloat()
val ffSdlAvatarMargin = context.resources.getDimens("ff_sdl_avatar_margin")
val ffSdlAvatarSize = context.resources.getDimens("ff_sdl_avatar_size")
val ffSdlAvatarStartMargin = context.resources.getDimens("ff_sdl_avatar_start_margin")
val ffSdlPrimaryTextStartMargin = context.resources.getDimens("ff_sdl_primary_text_start_margin").toFloat()

val feedEntryHeight = ffSdlAvatarSize + ffSdlAvatarMargin * 2 + ffSdlAvatarStartMargin
val feedEntryHeight = ffSdlAvatarSize + ffSdlAvatarMargin * 2 + (4 * context.resources.displayMetrics.density).toInt()
val separatorHeight = (context.resources.displayMetrics.density * 2).toInt()
val textPaint = TextPaint().apply {
textSize = secondaryTextSize
Expand Down

4 comments on commit 5347c50

@StupidRepo

This comment was marked as outdated.

@authorisation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine for me

@authorisation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit also has nothing to do with Snapchat Plus

@StupidRepo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it was my Snapchat that updated which may have messed up a few things, I forgot to delete this comment because I made the issue (which I also swiftly closed after Snap updated and after updating SnapEnhance fixed it)

Please sign in to comment.