reworking the Reminder activity screen a bit

This commit is contained in:
tibbi
2018-07-08 12:50:56 +02:00
parent cf05ba6565
commit 5552ac2c65
6 changed files with 27 additions and 14 deletions

View File

@ -11,7 +11,10 @@ import com.simplemobiletools.clock.extensions.*
import com.simplemobiletools.clock.helpers.ALARM_ID
import com.simplemobiletools.clock.helpers.getPassedSeconds
import com.simplemobiletools.clock.models.Alarm
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.extensions.applyColorFilter
import com.simplemobiletools.commons.extensions.beVisibleIf
import com.simplemobiletools.commons.extensions.showPickSecondsDialog
import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.commons.helpers.MINUTE_SECONDS
import kotlinx.android.synthetic.main.activity_reminder.*
@ -49,7 +52,6 @@ class ReminderActivity : SimpleActivity() {
reminder_title.text = label
reminder_text.text = if (isAlarmReminder) getFormattedTime(getPassedSeconds(), false, false) else getString(R.string.time_expired)
reminder_stop.background = resources.getColoredDrawableWithColor(R.drawable.circle_background_filled, getAdjustedPrimaryColor())
reminder_stop.setOnClickListener {
finish()
}