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
+2 -2
View File
@@ -65,7 +65,7 @@ dependencies {
// General
implementation "androidx.core:core-ktx:1.3.2"
implementation "androidx.activity:activity-ktx:1.2.2"
implementation "androidx.activity:activity-ktx:1.2.3"
implementation 'androidx.fragment:fragment-ktx:1.3.3'
// UI
@@ -86,7 +86,7 @@ dependencies {
// Media
// TODO: Migrate to media2 when I can figure out how to use it
implementation "androidx.media:media:1.3.0"
implementation "androidx.media:media:1.3.1"
// Preferences
implementation "androidx.preference:preference-ktx:1.1.1"
@@ -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),