add a Snooze button to Reminder activity

This commit is contained in:
tibbi
2018-03-14 19:21:03 +01:00
parent 10c5b07c90
commit 3c5fe3b935
4 changed files with 42 additions and 13 deletions

View File

@ -7,9 +7,7 @@ import com.simplemobiletools.clock.R
import com.simplemobiletools.clock.extensions.*
import com.simplemobiletools.clock.helpers.ALARM_ID
import com.simplemobiletools.clock.models.Alarm
import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor
import com.simplemobiletools.commons.extensions.getColoredDrawableWithColor
import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.commons.extensions.*
import kotlinx.android.synthetic.main.activity_reminder.*
class ReminderActivity : SimpleActivity() {
@ -36,6 +34,12 @@ class ReminderActivity : SimpleActivity() {
finish()
}
reminder_snooze.beVisibleIf(isAlarmReminder)
reminder_snooze.applyColorFilter(config.textColor)
reminder_snooze.setOnClickListener {
snoozeClicked()
}
Handler().postDelayed({
if (isAlarmReminder) {
showAlarmNotification(alarm!!, true)
@ -64,4 +68,8 @@ class ReminderActivity : SimpleActivity() {
}
hideNotificationHandler.removeCallbacksAndMessages(null)
}
private fun snoozeClicked() {
}
}