Update dependencies

Update kotlin to 1.5.0 and the android gradle plugin to 4.2.0.
This commit is contained in:
OxygenCobalt
2021-05-05 20:11:48 -06:00
parent a849d00248
commit 7c457d5773
4 changed files with 8 additions and 9 deletions
@@ -81,13 +81,13 @@ class SongsFragment : Fragment() {
// If the name actually starts with "The" or "A", get the character *after* that word.
// Yes, this is stupidly english centric but it wont run with other languages.
if (length > 5 && startsWith("the ", true)) {
return get(4).toUpperCase()
return get(4).uppercaseChar()
}
if (length > 3 && startsWith("a ", true)) {
return get(2).toUpperCase()
return get(2).uppercaseChar()
}
return get(0).toUpperCase()
return get(0).uppercaseChar()
}
}
@@ -9,7 +9,6 @@ import androidx.annotation.StringRes
import androidx.annotation.StyleRes
import androidx.core.text.HtmlCompat
import org.oxycblt.auxio.R
import java.util.Locale
/**
* A list of all possible accents.
@@ -55,7 +54,7 @@ data class Accent(@ColorRes val color: Int, @StyleRes val theme: Int, @StringRes
@SuppressLint("ResourceType")
fun getDetailedSummary(context: Context): Spanned {
val name = context.getString(name)
val hex = context.getString(color).toUpperCase(Locale.getDefault())
val hex = context.getString(color).uppercase()
return HtmlCompat.fromHtml(
context.getString(R.string.format_accent_summary, name, hex),