Add back auto complete interface names from 0.1.0
This commit is contained in:
@@ -2,6 +2,7 @@ package be.mygod.vpnhotspot.util
|
||||
|
||||
import android.content.*
|
||||
import android.databinding.BindingAdapter
|
||||
import android.os.Bundle
|
||||
import android.support.annotation.DrawableRes
|
||||
import android.util.Log
|
||||
import android.view.View
|
||||
@@ -26,6 +27,11 @@ fun intentFilter(vararg actions: String): IntentFilter {
|
||||
return result
|
||||
}
|
||||
|
||||
fun Bundle.put(key: String, map: Array<String>): Bundle {
|
||||
putStringArray(key, map)
|
||||
return this
|
||||
}
|
||||
|
||||
@BindingAdapter("android:src")
|
||||
fun setImageResource(imageView: ImageView, @DrawableRes resource: Int) = imageView.setImageResource(resource)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user