Skip to content

Commit

Permalink
fixed else branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinane-toters committed Apr 9, 2024
1 parent 1fe74de commit b867ce0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ internal class MaskContainer constructor(context: Context, attributeSet: Attribu
view.layoutParams = layoutParams
}
} else {
(highLightRect.right - highLightRect.width() / 2f - width).toInt()
layoutParams.leftMargin =
(highLightRect.left + highLightRect.width() / 2f - width / 2f).toInt()
gravities.add(Gravity.START)
}
}
Expand Down

0 comments on commit b867ce0

Please sign in to comment.