package com.livinglifetechway.k4kotlin

import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentTransaction

/**
 * Runs a FragmentTransaction, then calls commit().
 */
private inline fun FragmentManager.transact(function: FragmentTransaction.() -> Unit) {
    beginTransaction().apply {
        function()
    }.commit()
}

package com.livinglifetechway.k4kotlin

import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentTransaction

/**
 * Runs a FragmentTransaction, then calls commit().
 */
inline fun FragmentManager.transact(function: FragmentTransaction.() -> Unit) {
    beginTransaction().apply {
        function()
    }.commit()
}

Fix transact function marked as private
Fix transact function marked as private

kirtan403/K4Kotlin,kirtan403/K4Kotlin