Skip to content

Commit

Permalink
remove ext-function for EasyBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
yjfnypeu committed Nov 9, 2018
1 parent e5b7431 commit 189c24d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions utils/src/main/java/com/haoge/easyandroid/easy/EasyBundle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,4 @@ abstract class TypeGeneric<T>(private val raw:Class<*>) {
val type = (this.javaClass.genericSuperclass as ParameterizedType).actualTypeArguments[0]
return if (type is Class<*> || type is ParameterizedType) type else raw
}
}

fun Bundle.put(key:String, value:Any?):Bundle = EasyBundle.create(this).put(key, value).bundle
fun Bundle.put(map: Map<String, Any?>):Bundle = EasyBundle.create(this).put(map).bundle
fun Bundle.put(vararg params:Pair<String, Any?>):Bundle = EasyBundle.create(this).put(*params).bundle
}

0 comments on commit 189c24d

Please sign in to comment.