blob: cd638068a7b45d094a2322924dcbbeeba5a7b5a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package com.pitchedapps.frost.utils
import android.os.Bundle
import android.support.v4.app.Fragment
/**
* Created by Allan Wang on 2017-05-29.
*/
fun Fragment.withBundle(creator: (Bundle) -> Unit): Fragment {
val bundle = Bundle()
creator.invoke(bundle)
this.arguments = bundle
return this
}
|