Skip to content

Commit ba136b8

Browse files
committed
Fix lint in RippleView
1 parent 8a76668 commit ba136b8

File tree

1 file changed

+3
-1
lines changed
  • ui/src/main/kotlin/com/algolia/instantsearch/voice/ui

1 file changed

+3
-1
lines changed

ui/src/main/kotlin/com/algolia/instantsearch/voice/ui/RippleView.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.algolia.instantsearch.voice.ui
22

33
import android.animation.AnimatorSet
4+
import android.annotation.SuppressLint
45
import android.content.Context
56
import android.graphics.Canvas
67
import android.os.Build
@@ -85,9 +86,10 @@ class RippleView : View {
8586
removeCallbacks(runnableFps)
8687
}
8788

89+
@SuppressLint("Recycle")
8890
private fun init(attrs: AttributeSet) {
8991
context.obtainStyledAttributes(attrs, R.styleable.RippleView, 0, 0).also {
90-
val drawable = it.getDrawable(R.styleable.RippleView_drawable)
92+
val drawable = it.getDrawable(R.styleable.RippleView_drawable)!!
9193
delay = it.getInt(R.styleable.RippleView_delay, 500).toLong()
9294
duration = it.getInt(R.styleable.RippleView_duration, 500).toLong()
9395
size = it.getDimensionPixelSize(R.styleable.RippleView_size, 0)

0 commit comments

Comments
 (0)