mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-04-02 21:01:02 +02:00
fix #117, fixing some glitch related to alarms toggline on/off
This commit is contained in:
parent
37369233cf
commit
232361d807
@ -100,7 +100,7 @@ class AlarmsAdapter(activity: SimpleActivity, var alarms: ArrayList<Alarm>, val
|
|||||||
|
|
||||||
alarm_switch.isChecked = alarm.isEnabled
|
alarm_switch.isChecked = alarm.isEnabled
|
||||||
alarm_switch.setColors(textColor, adjustedPrimaryColor, backgroundColor)
|
alarm_switch.setColors(textColor, adjustedPrimaryColor, backgroundColor)
|
||||||
alarm_switch.setOnCheckedChangeListener { buttonView, isChecked ->
|
alarm_switch.setOnClickListener {
|
||||||
if (alarm.days > 0) {
|
if (alarm.days > 0) {
|
||||||
if (activity.config.wasAlarmWarningShown) {
|
if (activity.config.wasAlarmWarningShown) {
|
||||||
toggleAlarmInterface.alarmToggled(alarm.id, alarm_switch.isChecked)
|
toggleAlarmInterface.alarmToggled(alarm.id, alarm_switch.isChecked)
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package com.simplemobiletools.clock.fragments
|
package com.simplemobiletools.clock.fragments
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.fragment.app.Fragment
|
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
|
import androidx.fragment.app.Fragment
|
||||||
import com.simplemobiletools.clock.R
|
import com.simplemobiletools.clock.R
|
||||||
import com.simplemobiletools.clock.activities.MainActivity
|
import com.simplemobiletools.clock.activities.MainActivity
|
||||||
import com.simplemobiletools.clock.activities.SimpleActivity
|
import com.simplemobiletools.clock.activities.SimpleActivity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user