changeActivityAndClose

inline fun <T : Activity, L> T.changeActivityAndClose(bundle: Bundle? = null, vararg extra: Pair<String, Any?>)

Change activity extension. Close current open activity after open the new activity.

Parameters

T

Current activity

L

Target generic class

bundle

Additional options for how the Activity should be started.

extra

Extra intent arguments