mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-17 15:45:21 +01:00
Remove unused code
This commit is contained in:
parent
381d1ed402
commit
5d157a3e08
1 changed files with 0 additions and 13 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue