diff --git a/README.md b/README.md index 2b8abee38..fdf158595 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,14 @@ precise/original dates, sort tags, and more You can support Auxio's development through [my Github Sponsors page](https://github.com/sponsors/OxygenCobalt). Get the ability to prioritize features and have your profile added to the README, Release Changelogs, and even the app itself! +

$16/month supporters:

+ +

+ +
+ Mark Pitblado +

+

$8/month supporters:

diff --git a/app/src/main/java/org/oxycblt/auxio/settings/AboutFragment.kt b/app/src/main/java/org/oxycblt/auxio/settings/AboutFragment.kt index 7f278df5c..dd46665ec 100644 --- a/app/src/main/java/org/oxycblt/auxio/settings/AboutFragment.kt +++ b/app/src/main/java/org/oxycblt/auxio/settings/AboutFragment.kt @@ -72,6 +72,9 @@ class AboutFragment : ViewBindingFragment() { binding.aboutLicenses.setOnClickListener { requireContext().openInBrowser(LINK_LICENSES) } binding.aboutProfile.setOnClickListener { requireContext().openInBrowser(LINK_PROFILE) } binding.aboutDonate.setOnClickListener { requireContext().openInBrowser(LINK_DONATE) } + binding.aboutSupMarkPitblado.setOnClickListener { + requireContext().openInBrowser(LINK_SUP_MARK_PITBLADO) + } binding.aboutFeedbackGithub.setOnClickListener { requireContext().openInBrowser(LINK_NEW_ISSUE) } @@ -113,5 +116,6 @@ class AboutFragment : ViewBindingFragment() { const val LINK_NEW_ISSUE = "$LINK_SOURCE/issues/new" const val LINK_PROFILE = "https://github.com/OxygenCobalt" const val LINK_DONATE = "https://github.com/sponsors/OxygenCobalt" + const val LINK_SUP_MARK_PITBLADO = "https://github.com/mark-pitblado" } } diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml index d574f8e79..2c13dbb5a 100644 --- a/app/src/main/res/layout/fragment_about.xml +++ b/app/src/main/res/layout/fragment_about.xml @@ -226,6 +226,17 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> + + org.oxycblt.auxio.image.CoverProvider + Mark Pitblado \ No newline at end of file diff --git a/musikr/src/main/java/org/oxycblt/musikr/covers/fs/FSCovers.kt b/musikr/src/main/java/org/oxycblt/musikr/covers/fs/FSCovers.kt index 3322ae8ef..dfb8dbdb2 100644 --- a/musikr/src/main/java/org/oxycblt/musikr/covers/fs/FSCovers.kt +++ b/musikr/src/main/java/org/oxycblt/musikr/covers/fs/FSCovers.kt @@ -117,7 +117,7 @@ class MutableFSCovers(private val context: Context) : MutableCovers { // that should not be managed by the app } - private fun coverArtScore(file: DeviceFile): Int { + private suspend fun coverArtScore(file: DeviceFile): Int { if (!file.mimeType.startsWith("image/", ignoreCase = true)) { // Not an image file. You lose! return 0 @@ -127,9 +127,9 @@ class MutableFSCovers(private val context: Context) : MutableCovers { val name = filename.substringBeforeLast('.') val extension = filename.substringAfterLast('.', "") // See if the name contains any of the preferred cover names. This helps weed out - // images that are not actually cover art and are just there. + // images that are not actually cover art and are just there., var score = - preferredCoverNames + (preferredCoverNames + requireNotNull(file.parent.await().path.name)) .withIndex() .filter { name.contains(it.value, ignoreCase = true) } .sumOf { it.index + 1 }