Skip to content

Commit

Permalink
chore: cleanup constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
agronick committed Jan 7, 2025
1 parent a7ae081 commit 2c91734
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/com/aatorque/stats/SizedImageIndicator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ class SizedImageIndicator
* center indicator position will be center of speedometer.
* @param context you can use `applicationContext`.
* @param bitmapIndicator the indicator.
*/
constructor(context: Context, private val bitmapIndicator: Drawable) : Indicator<ImageIndicator>(context) {
*/(context: Context, private val bitmapIndicator: Drawable) : Indicator<ImageIndicator>(context) {

override fun draw(canvas: Canvas) {
bitmapIndicator.draw(canvas)
}

override fun updateIndicator() {
val size = (speedometer?.size ?: 250)
bitmapIndicator.setBounds(0, 0, size, size)
bitmapIndicator.setBounds(0, 0, size, size)
}

override fun setWithEffects(withEffects: Boolean) {}
Expand Down

0 comments on commit 2c91734

Please sign in to comment.