use applicationContext at launching settings

This commit is contained in:
tibbi 2017-11-06 23:59:09 +01:00
parent 1e69561e84
commit 932fc628a3
1 changed files with 1 additions and 1 deletions

View File

@ -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)