capitalize Context and String extensions

This commit is contained in:
tibbi 2017-11-19 18:39:36 +01:00
parent 43ebc7add1
commit 18104b98c0
2 changed files with 1 additions and 1 deletions

View File

@ -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)))