mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 15:01:57 +03:00
fix: Update calls to Kotlin 2.1
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
dee3ee67fd
commit
fd5496f166
3 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@ import android.os.Build
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
||||||
class DeviceInfo {
|
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 apiLevel: Int = Build.VERSION.SDK_INT
|
||||||
val androidVersion = Build.VERSION.RELEASE
|
val androidVersion = Build.VERSION.RELEASE
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ class EtmMigrations : EtmBaseFragment() {
|
||||||
|
|
||||||
fun showStatus() {
|
fun showStatus() {
|
||||||
val builder = StringBuilder()
|
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")
|
builder.append("Migration status: $status\n")
|
||||||
val lastMigratedVersion = if (vm.lastMigratedVersion >= 0) {
|
val lastMigratedVersion = if (vm.lastMigratedVersion >= 0) {
|
||||||
vm.lastMigratedVersion.toString()
|
vm.lastMigratedVersion.toString()
|
||||||
|
|
|
@ -117,7 +117,7 @@ class PlayerService : Service() {
|
||||||
}
|
}
|
||||||
|
|
||||||
val pendingStop = PendingIntent.getService(this, 0, stop, PendingIntent.FLAG_IMMUTABLE)
|
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 {
|
val toggle = Intent(this, PlayerService::class.java).apply {
|
||||||
action = ACTION_TOGGLE
|
action = ACTION_TOGGLE
|
||||||
|
@ -126,7 +126,7 @@ class PlayerService : Service() {
|
||||||
val pendingToggle = PendingIntent.getService(this, 0, toggle, PendingIntent.FLAG_IMMUTABLE)
|
val pendingToggle = PendingIntent.getService(this, 0, toggle, PendingIntent.FLAG_IMMUTABLE)
|
||||||
notificationBuilder.addAction(
|
notificationBuilder.addAction(
|
||||||
0,
|
0,
|
||||||
getString(R.string.player_toggle).toUpperCase(Locale.getDefault()),
|
getString(R.string.player_toggle).lowercase(Locale.getDefault()),
|
||||||
pendingToggle
|
pendingToggle
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue