From 932fc628a3679c37f3e1e3a61bd7fe31405f75c6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 6 Nov 2017 23:59:09 +0100 Subject: [PATCH] use applicationContext at launching settings --- .../kotlin/com/simplemobiletools/gallery/extensions/context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt index b6d19504f..d91b80885 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt @@ -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)