Skip to content

Commit

Permalink
Provide default constructor for change handler
Browse files Browse the repository at this point in the history
  • Loading branch information
moezbhatti committed Sep 10, 2019
1 parent 6614089 commit 10ffeca
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,18 @@ import com.bluelinelabs.conductor.ControllerChangeHandler
import com.bluelinelabs.conductor.changehandler.AnimatorChangeHandler
import com.moez.QKSMS.common.util.extensions.dpToPx

class QkChangeHandler(removesFromViewOnPush: Boolean = true) : AnimatorChangeHandler(250, removesFromViewOnPush) {
class QkChangeHandler @JvmOverloads constructor(
removesFromViewOnPush: Boolean = true
) : AnimatorChangeHandler(250, removesFromViewOnPush) {

@NonNull
override fun getAnimator(@NonNull container: ViewGroup, @Nullable from: View?, @Nullable to: View?, isPush: Boolean, toAddedToContainer: Boolean): Animator {
override fun getAnimator(
@NonNull container: ViewGroup,
@Nullable from: View?,
@Nullable to: View?,
isPush: Boolean,
toAddedToContainer: Boolean
): Animator {
val animatorSet = AnimatorSet()
animatorSet.interpolator = DecelerateInterpolator()

Expand Down

0 comments on commit 10ffeca

Please sign in to comment.