properly format alarm days

This commit is contained in:
tibbi 2018-03-04 19:16:54 +01:00
parent db1012d255
commit d9d84b0c2f
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:3.14.12'
implementation 'com.simplemobiletools:commons:3.14.13'
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
}

View File

@ -8,6 +8,7 @@ import com.simplemobiletools.clock.activities.SimpleActivity
import com.simplemobiletools.clock.extensions.formatAlarmTime
import com.simplemobiletools.clock.models.Alarm
import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
import com.simplemobiletools.commons.extensions.getSelectedDaysString
import com.simplemobiletools.commons.views.MyRecyclerView
import kotlinx.android.synthetic.main.item_alarm.view.*
import java.util.*
@ -71,7 +72,7 @@ class AlarmsAdapter(activity: SimpleActivity, var alarms: ArrayList<Alarm>, recy
alarm_time.text = alarm.timeInMinutes.formatAlarmTime()
alarm_time.setTextColor(textColor)
alarm_days.text = "Mon, Tue, Wed, Thu, Fri"
alarm_days.text = activity.getSelectedDaysString(alarm.days)
alarm_days.setTextColor(textColor)
alarm_switch.isChecked = alarm.isEnabled