mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
add a Snooze button to Reminder activity
This commit is contained in:
@ -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() {
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user