From 05f0faefb814aeecd33bec6d8c99e6d77142fa70 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 3 Jul 2019 22:44:51 +0200 Subject: [PATCH] sort the items at sleep timer picker in an ascending order --- .../com/simplemobiletools/musicplayer/activities/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/musicplayer/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/musicplayer/activities/MainActivity.kt index b8e020df..8b573414 100644 --- a/app/src/main/kotlin/com/simplemobiletools/musicplayer/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/musicplayer/activities/MainActivity.kt @@ -360,6 +360,7 @@ class MainActivity : SimpleActivity(), SongListListener { items.add(RadioItem(config.lastSleepTimerSeconds, text)) } + items.sortBy { it.id } items.add(RadioItem(-1, getString(R.string.custom))) RadioGroupDialog(this, items, config.lastSleepTimerSeconds) {