Skip to content

Commit fd34b16

Browse files
committed
Remove obsoleted code causing crash
1 parent 1e367cd commit fd34b16

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

library/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ mavenPublishing {
7272
publishToMavenCentral()
7373
signAllPublications()
7474

75-
coordinates("io.github.nift4.mediastorecompat", "mediastorecompat", "1.0.0-alpha24")
75+
coordinates("io.github.nift4.mediastorecompat", "mediastorecompat", "1.0.0-alpha25")
7676

7777
pom {
7878
name.set("MediaStoreCompat")

library/src/main/java/org/nift4/mediastorecompat/MediaStoreCompat.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3358,11 +3358,6 @@ object MediaStoreCompat {
33583358
if (Build.VERSION.SDK_INT != Build.VERSION_CODES.R ||
33593359
supportsWriteRequestForSidecar())
33603360
throw IllegalStateException("Failed to update file $uri in MediaStore")
3361-
Thread {
3362-
// fire and forget to background thread to ignore waiting but
3363-
// still log timeouts etc...
3364-
scanFile(context, uri)
3365-
}.start()
33663361
getMediaUriForFile(context, newFile.absolutePath)
33673362
}
33683363
return newFile

0 commit comments

Comments
 (0)