Skip to content

Commit

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

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

@NonNull
override fun getAnimator(
Expand Down Expand Up @@ -75,7 +73,7 @@ class QkChangeHandler @JvmOverloads constructor(

@NonNull
override fun copy(): ControllerChangeHandler {
return QkChangeHandler(removesFromViewOnPush())
return QkChangeHandler()
}

}

0 comments on commit f4f865d

Please sign in to comment.