sort the items at sleep timer picker in an ascending order

This commit is contained in:
tibbi 2019-07-03 22:44:51 +02:00
parent 5b66b7fa16
commit 05f0faefb8

View file

@ -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) {