mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-19 06:48:00 +01:00
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