Skip to content

Commit e2bf4a5

Browse files
committed
update RxActivityTool.
1 parent fcd3bed commit e2bf4a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RxDemo/src/main/java/com/tamsiree/rxdemo/activity/ActivityTCardGallery.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ActivityTCardGallery : ActivityBase() {
4747
// mRecyclerView绑定scale效果
4848
// mRecyclerView绑定scale效果
4949
mCardScaleHelper = CardScaleHelper()
50-
mCardScaleHelper!!.currentItemPos = 2
50+
mCardScaleHelper!!.currentItemPos = 0
5151
mCardScaleHelper!!.attachToRecyclerView(recyclerView, object : OnDoIntListener {
5252
override fun doSomething(intValue: Int) {
5353
RxToast.normal("选中$intValue")

RxKit/src/main/java/com/tamsiree/rxkit/RxActivityTool.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ object RxActivityTool {
226226

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

0 commit comments

Comments
 (0)