fix #117, fixing some glitch related to alarms toggline on/off

This commit is contained in:
tibbi 2020-02-14 19:21:49 +01:00
parent 37369233cf
commit 232361d807
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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