Skip to content

Commit

Permalink
Resolved All Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TanishMoral11 committed Dec 16, 2024
1 parent a6624fa commit 73e09dc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ sealed class ListItemLeadingMarginSpan : LeadingMarginSpan {
private val displayLocale: OppiaLocale.DisplayLocale
) : ListItemLeadingMarginSpan() {
private val resources = context.resources
private val baseMargin = context.resources.getDimensionPixelSize((R.dimen.spacing_before_number_prefix))
private val baseMargin =
context.resources.getDimensionPixelSize((R.dimen.spacing_before_number_prefix))

// Try to use a computed margin, but otherwise guess if there's no guaranteed spacing.
private var computedLeadingMargin =
2 * longestNumberedItemPrefix.length + baseMargin
Expand Down

0 comments on commit 73e09dc

Please sign in to comment.