mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 13:37:29 +01:00
Drop support for Android 5.x
This commit is contained in:
@@ -20,12 +20,7 @@ class ElevationAppBarLayout @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
fun enableElevation(liftOnScroll: Boolean) {
|
||||
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP) {
|
||||
// Delay to avoid crash
|
||||
post { setElevation(liftOnScroll) }
|
||||
} else {
|
||||
setElevation(liftOnScroll)
|
||||
}
|
||||
setElevation(liftOnScroll)
|
||||
}
|
||||
|
||||
private fun setElevation(liftOnScroll: Boolean) {
|
||||
|
||||
@@ -49,10 +49,8 @@ class RevealAnimationView @JvmOverloads constructor(context: Context, attrs: Att
|
||||
* @param centerX x starting point
|
||||
* @param centerY y starting point
|
||||
* @param listener animation listener
|
||||
*
|
||||
* @return sdk version lower then 21
|
||||
*/
|
||||
fun showRevealEffect(centerX: Int, centerY: Int, listener: Animator.AnimatorListener): Boolean {
|
||||
fun showRevealEffect(centerX: Int, centerY: Int, listener: Animator.AnimatorListener) {
|
||||
this.isVisible = true
|
||||
|
||||
val height = this.height
|
||||
@@ -71,6 +69,5 @@ class RevealAnimationView @JvmOverloads constructor(context: Context, attrs: Att
|
||||
|
||||
anim.addListener(listener)
|
||||
anim.start()
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user