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