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