From f4f865d93d9e20dc37c685a0e6139dc87e37e563 Mon Sep 17 00:00:00 2001 From: moezbhatti Date: Tue, 10 Sep 2019 10:40:16 -0400 Subject: [PATCH] Fix change handler crash --- .../src/main/java/com/moez/QKSMS/common/QkChangeHandler.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/presentation/src/main/java/com/moez/QKSMS/common/QkChangeHandler.kt b/presentation/src/main/java/com/moez/QKSMS/common/QkChangeHandler.kt index 93619ebb1..d18805e1b 100644 --- a/presentation/src/main/java/com/moez/QKSMS/common/QkChangeHandler.kt +++ b/presentation/src/main/java/com/moez/QKSMS/common/QkChangeHandler.kt @@ -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( @@ -75,7 +73,7 @@ class QkChangeHandler @JvmOverloads constructor( @NonNull override fun copy(): ControllerChangeHandler { - return QkChangeHandler(removesFromViewOnPush()) + return QkChangeHandler() } }