Remove unused code

This commit is contained in:
Valeri Gokadze 2024-12-07 13:25:20 +04:00
parent 381d1ed402
commit 5d157a3e08

View file

@ -186,19 +186,6 @@ fun BottomSheetBehavior<*>.peekHeightAnimate(value: Int): Animator {
}
}
fun MaterialCardView.animateRadius(cornerRadius: Float, pause: Boolean = true) {
ValueAnimator.ofFloat(radius, cornerRadius).apply {
addUpdateListener { radius = animatedValue as Float }
start()
}
ValueAnimator.ofInt(measuredWidth, if (pause) (height * 1.5).toInt() else height).apply {
addUpdateListener {
updateLayoutParams<ViewGroup.LayoutParams> { width = animatedValue as Int }
}
start()
}
}
fun View.focusAndShowKeyboard() {
/**
* This is to be called when the window already has focus.