Skip to content

Commit

Permalink
默认的go方法也支持options
Browse files Browse the repository at this point in the history
  • Loading branch information
你需要一台永动机 committed Jan 17, 2020
1 parent e434407 commit d1b5900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/java/com/pmm/metro/TrainDispatcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class TrainDispatcher(private var ticket: Ticket, private val driver: Any) {
}

//开启Activity
fun go(requestCode: Int = -1) = activityLauncher().go(requestCode)
fun go(requestCode: Int = -1, options: Bundle? = null) = activityLauncher().go(requestCode,options)

//转换Activity
fun activityLauncher(): ActivityLauncher {
Expand Down

0 comments on commit d1b5900

Please # to comment.