private fun doSetRhythmDrawable(@Nullable drawable: RhythmDrawable) { if (mRhythmDrawable != null) { mRhythmDrawable.setCallback(null) } mRhythmDrawable = drawable if (mRhythmDrawable != null) { mRhythmDrawable.setBounds(mBounds) mRhythmDrawable.setCallback(this) } }
Links new drawable to this view