File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ui/src/main/kotlin/com/algolia/instantsearch/voice/ui Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11package com.algolia.instantsearch.voice.ui
22
33import android.animation.AnimatorSet
4+ import android.annotation.SuppressLint
45import android.content.Context
56import android.graphics.Canvas
67import 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 )
You can’t perform that action at this time.
0 commit comments