use applicationContext at launching settings
This commit is contained in:
parent
1e69561e84
commit
932fc628a3
|
@ -47,7 +47,7 @@ fun Context.getHumanizedFilename(path: String): String {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Context.launchSettings() {
|
fun Context.launchSettings() {
|
||||||
startActivity(Intent(this, SettingsActivity::class.java))
|
startActivity(Intent(applicationContext, SettingsActivity::class.java))
|
||||||
}
|
}
|
||||||
|
|
||||||
val Context.config: Config get() = Config.newInstance(applicationContext)
|
val Context.config: Config get() = Config.newInstance(applicationContext)
|
||||||
|
|
Loading…
Reference in New Issue