|
@@ -6,7 +6,6 @@ import androidx.core.content.ContextCompat
|
|
import com.bluelinelabs.conductor.Controller
|
|
import com.bluelinelabs.conductor.Controller
|
|
import com.bluelinelabs.conductor.Router
|
|
import com.bluelinelabs.conductor.Router
|
|
import com.bluelinelabs.conductor.RouterTransaction
|
|
import com.bluelinelabs.conductor.RouterTransaction
|
|
-import com.bluelinelabs.conductor.changehandler.FadeChangeHandler
|
|
|
|
|
|
|
|
fun Router.popControllerWithTag(tag: String): Boolean {
|
|
fun Router.popControllerWithTag(tag: String): Boolean {
|
|
val controller = getControllerWithTag(tag)
|
|
val controller = getControllerWithTag(tag)
|
|
@@ -30,6 +29,6 @@ fun Controller.requestPermissionsSafe(permissions: Array<String>, requestCode: I
|
|
|
|
|
|
fun Controller.withFadeTransaction(): RouterTransaction {
|
|
fun Controller.withFadeTransaction(): RouterTransaction {
|
|
return RouterTransaction.with(this)
|
|
return RouterTransaction.with(this)
|
|
- .pushChangeHandler(FadeChangeHandler())
|
|
|
|
- .popChangeHandler(FadeChangeHandler())
|
|
|
|
|
|
+ .pushChangeHandler(OneWayFadeChangeHandler())
|
|
|
|
+ .popChangeHandler(OneWayFadeChangeHandler())
|
|
}
|
|
}
|