diff options
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/FragmentUtils.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/FragmentUtils.kt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/FragmentUtils.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/FragmentUtils.kt deleted file mode 100644 index f945c90a..00000000 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/FragmentUtils.kt +++ /dev/null @@ -1,24 +0,0 @@ -package com.pitchedapps.frost.utils - -import android.os.Bundle -import android.support.v4.app.Fragment - -/** - * Created by Allan Wang on 2017-05-29. - */ - -private fun Fragment.bundle(): Bundle { - if (this.arguments == null) - this.arguments = Bundle() - return this.arguments -} - -fun <T : Fragment> T.putString(key: String, value: String): T { - this.bundle().putString(key, value) - return this -} - -fun <T : Fragment> T.putInt(key: String, value: Int): T { - this.bundle().putInt(key, value) - return this -}
\ No newline at end of file |