Skip to content

Commit

Permalink
update RxActivityTool.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamsiree committed Mar 26, 2020
1 parent fcd3bed commit e2bf4a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ActivityTCardGallery : ActivityBase() {
// mRecyclerView绑定scale效果
// mRecyclerView绑定scale效果
mCardScaleHelper = CardScaleHelper()
mCardScaleHelper!!.currentItemPos = 2
mCardScaleHelper!!.currentItemPos = 0
mCardScaleHelper!!.attachToRecyclerView(recyclerView, object : OnDoIntListener {
override fun doSomething(intValue: Int) {
RxToast.normal("选中$intValue")
Expand Down
2 changes: 1 addition & 1 deletion RxKit/src/main/java/com/tamsiree/rxkit/RxActivityTool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ object RxActivityTool {

@JvmStatic
@JvmOverloads
fun skipActivityOnTransitions(mContext: Context?, goal: Class<out Activity>?, bundle: Bundle? = null, vararg pairs: Pair<View?, String?>?) {
fun skipActivityOnTransitions(mContext: Context?, goal: Class<out Activity>?, bundle: Bundle? = null, vararg pairs: Pair<View, String>?) {
val intent = Intent(mContext, goal)
val bundle1 = ActivityOptions.makeSceneTransitionAnimation(mContext as Activity?, *pairs).toBundle()
if (bundle != null) {
Expand Down

0 comments on commit e2bf4a5

Please sign in to comment.