mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-20 14:00:37 +01:00
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…
x
Reference in New Issue
Block a user