Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pantasystem committed Jun 26, 2023
1 parent 17d43d0 commit c773f35
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package net.pantasystem.milktea.data.infrastructure.image

import android.content.Context
import android.content.Intent
import android.graphics.BitmapFactory
import android.net.Uri
import dagger.hilt.android.qualifiers.ApplicationContext
import io.objectbox.BoxStore
import io.objectbox.kotlin.awaitCallInTx
Expand Down Expand Up @@ -60,10 +58,6 @@ class ImageCacheRepositoryImpl @Inject constructor(
}
}.resolve(fileName)

context.contentResolver.takePersistableUriPermission(
Uri.fromFile(file),
Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION
)
downloadAndSaveFile(url, file)

val cache = ImageCache(
Expand Down

0 comments on commit c773f35

Please sign in to comment.