fix: Update calls to Kotlin 2.1

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2024-12-01 16:42:25 +01:00
parent dee3ee67fd
commit fd5496f166
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ import android.os.Build
import java.util.Locale
class DeviceInfo {
val vendor: String = Build.MANUFACTURER.toLowerCase(Locale.ROOT)
val vendor: String = Build.MANUFACTURER.lowercase(Locale.ROOT)
val apiLevel: Int = Build.VERSION.SDK_INT
val androidVersion = Build.VERSION.RELEASE

View file

@ -40,7 +40,7 @@ class EtmMigrations : EtmBaseFragment() {
fun showStatus() {
val builder = StringBuilder()
val status = vm.migrationsStatus.toString().toLowerCase(Locale.US)
val status = vm.migrationsStatus.toString().lowercase(Locale.US)
builder.append("Migration status: $status\n")
val lastMigratedVersion = if (vm.lastMigratedVersion >= 0) {
vm.lastMigratedVersion.toString()

View file

@ -117,7 +117,7 @@ class PlayerService : Service() {
}
val pendingStop = PendingIntent.getService(this, 0, stop, PendingIntent.FLAG_IMMUTABLE)
notificationBuilder.addAction(0, getString(R.string.player_stop).toUpperCase(Locale.getDefault()), pendingStop)
notificationBuilder.addAction(0, getString(R.string.player_stop).lowercase(Locale.getDefault()), pendingStop)
val toggle = Intent(this, PlayerService::class.java).apply {
action = ACTION_TOGGLE
@ -126,7 +126,7 @@ class PlayerService : Service() {
val pendingToggle = PendingIntent.getService(this, 0, toggle, PendingIntent.FLAG_IMMUTABLE)
notificationBuilder.addAction(
0,
getString(R.string.player_toggle).toUpperCase(Locale.getDefault()),
getString(R.string.player_toggle).lowercase(Locale.getDefault()),
pendingToggle
)
}