Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
anggrayudi committed Jun 5, 2021
1 parent e194953 commit 6421dfb
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ object MediaStoreCompat {
@SuppressLint("InlinedApi")
get() = if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) MediaStore.VOLUME_EXTERNAL else MediaStore.VOLUME_EXTERNAL_PRIMARY

@RequiresApi(Build.VERSION_CODES.Q)
@JvmStatic
@JvmOverloads
fun createDownload(context: Context, file: FileDescription, mode: CreateMode = CreateMode.CREATE_NEW): MediaFile? {
Expand Down Expand Up @@ -163,9 +162,6 @@ object MediaStoreCompat {
return fromMediaId(context, mediaType, id.toString())
}

/**
* Consider searching [MediaFile] with [File] on API 28-
*/
@JvmStatic
fun fromFileName(context: Context, mediaType: MediaType, name: String): MediaFile? {
return if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
Expand Down

0 comments on commit 6421dfb

Please sign in to comment.