Loading commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context-storage.kt +4 −0 Original line number Diff line number Diff line Loading @@ -237,6 +237,10 @@ fun Context.getFileUri(path: String) = when { // these functions update the mediastore instantly, MediaScannerConnection.scanFile takes some time to really get applied fun Context.deleteFromMediaStore(path: String): Boolean { if (getDoesFilePathExist(path)) { return false } return try { val where = "${MediaStore.MediaColumns.DATA} = ?" val args = arrayOf(path) Loading Loading
commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Context-storage.kt +4 −0 Original line number Diff line number Diff line Loading @@ -237,6 +237,10 @@ fun Context.getFileUri(path: String) = when { // these functions update the mediastore instantly, MediaScannerConnection.scanFile takes some time to really get applied fun Context.deleteFromMediaStore(path: String): Boolean { if (getDoesFilePathExist(path)) { return false } return try { val where = "${MediaStore.MediaColumns.DATA} = ?" val args = arrayOf(path) Loading