From 18104b98c02d6144e6cfb0fce03245c54a681ea7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 19 Nov 2017 18:39:36 +0100 Subject: [PATCH] capitalize Context and String extensions --- .../filemanager/extensions/{context.kt => Context.kt} | 2 +- .../filemanager/extensions/{string.kt => String.kt} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/{context.kt => Context.kt} (82%) rename app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/{string.kt => String.kt} (100%) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/context.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/Context.kt similarity index 82% rename from app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/context.kt rename to app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/Context.kt index 0c273dbc..891ad1ae 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/Context.kt @@ -4,6 +4,6 @@ import android.content.Context import com.simplemobiletools.commons.extensions.hasExternalSDCard import com.simplemobiletools.filemanager.helpers.Config -val Context.config: Config get() = Config.newInstance(this) +val Context.config: Config get() = Config.newInstance(applicationContext) fun Context.isPathOnRoot(path: String) = !(path.startsWith(config.internalStoragePath) || (hasExternalSDCard() && path.startsWith(config.sdCardPath))) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/string.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/String.kt similarity index 100% rename from app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/string.kt rename to app/src/main/kotlin/com/simplemobiletools/filemanager/extensions/String.kt