Fixed invisible bottom navbar sometimes and a crash

This commit is contained in:
Prathamesh More 2021-10-13 16:53:53 +05:30
parent c2647b9160
commit 9b376a2f4f
4 changed files with 13 additions and 8 deletions

View file

@ -14,6 +14,7 @@
*/
package code.name.monkey.retromusic.extensions
import android.animation.Animator
import android.animation.ObjectAnimator
import android.content.Context
import android.view.LayoutInflater
@ -63,8 +64,8 @@ fun EditText.appHandleColor(): EditText {
return this
}
fun View.translateYAnimate(value: Float) {
ObjectAnimator.ofFloat(this, "translationY", value)
fun View.translateYAnimate(value: Float): Animator {
return ObjectAnimator.ofFloat(this, "translationY", value)
.apply {
duration = 300
doOnStart {