add another toast context extension, with the text as parameter
This commit is contained in:
parent
82e50bbcce
commit
1d19cd81ac
2 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,7 @@ ext {
|
|||
propMinSdkVersion = 16
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '2.22.9'
|
||||
propVersionName = '2.23.0'
|
||||
kotlin_version = '1.1.3-2'
|
||||
support_libs = '25.3.1'
|
||||
}
|
||||
|
|
|
@ -97,6 +97,10 @@ fun Context.toast(id: Int, length: Int = Toast.LENGTH_SHORT) {
|
|||
Toast.makeText(this, id, length).show()
|
||||
}
|
||||
|
||||
fun Context.toast(msg: String, length: Int = Toast.LENGTH_SHORT) {
|
||||
Toast.makeText(this, msg, length).show()
|
||||
}
|
||||
|
||||
val Context.baseConfig: BaseConfig get() = BaseConfig.newInstance(this)
|
||||
val Context.sdCardPath: String get() = baseConfig.sdCardPath
|
||||
val Context.internalStoragePath: String get() = baseConfig.internalStoragePath
|
||||
|
|
Loading…
Reference in a new issue