diff --git a/build.gradle b/build.gradle index aee0d130d..9748c8b13 100644 --- a/build.gradle +++ b/build.gradle @@ -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' } diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context.kt index 4597264f0..9bbc7cabf 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context.kt @@ -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