Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e40d3c43 authored by tibbi's avatar tibbi
Browse files

use proper mimetype at file scanning

parent 8397586d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -236,7 +236,7 @@ fun Context.rescanPaths(paths: ArrayList<String>, callback: (() -> Unit)? = null
        override fun onMediaScannerConnected() {
        override fun onMediaScannerConnected() {
            paths.forEach {
            paths.forEach {
                if (connection?.isConnected == true) {
                if (connection?.isConnected == true) {
                    connection?.scanFile(it, "")
                    connection?.scanFile(it, it.getMimeType())
                }
                }
            }
            }
        }
        }