capitalize Context and String extensions
This commit is contained in:
parent
43ebc7add1
commit
18104b98c0
2 changed files with 1 additions and 1 deletions
|
@ -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)))
|
Loading…
Reference in a new issue