diff --git a/app/src/main/java/com/nextcloud/client/device/DeviceInfo.kt b/app/src/main/java/com/nextcloud/client/device/DeviceInfo.kt index f4d862cbe3..f23f5ead6a 100644 --- a/app/src/main/java/com/nextcloud/client/device/DeviceInfo.kt +++ b/app/src/main/java/com/nextcloud/client/device/DeviceInfo.kt @@ -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 diff --git a/app/src/main/java/com/nextcloud/client/etm/pages/EtmMigrations.kt b/app/src/main/java/com/nextcloud/client/etm/pages/EtmMigrations.kt index 8f93432865..cf9cbd3057 100644 --- a/app/src/main/java/com/nextcloud/client/etm/pages/EtmMigrations.kt +++ b/app/src/main/java/com/nextcloud/client/etm/pages/EtmMigrations.kt @@ -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() diff --git a/app/src/main/java/com/nextcloud/client/media/PlayerService.kt b/app/src/main/java/com/nextcloud/client/media/PlayerService.kt index ec6012f533..f953a79973 100644 --- a/app/src/main/java/com/nextcloud/client/media/PlayerService.kt +++ b/app/src/main/java/com/nextcloud/client/media/PlayerService.kt @@ -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 ) }