mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-30 14:02:56 +01:00
Do not save an alarm as "smart" if the device does not support it (#612)
Opening the activity when a device that does not support smart alarms is connected hides the "smart alarm" toggle. This is now reflected also on the saved data. This solution is not ideal in case of multiple devices but as long as #577 is not solved its the best we can do.
This commit is contained in:
parent
11b48e7a1a
commit
d550defcb3
@ -1,5 +1,8 @@
|
||||
###Changelog
|
||||
|
||||
###Version next
|
||||
* Alarms activity improvements and fixes
|
||||
|
||||
###Version 0.18.3
|
||||
* Fix bug that caused the same value in weekly charts for every day on Android 6 and older
|
||||
|
||||
|
@ -105,7 +105,7 @@ public class AlarmDetails extends GBActivity {
|
||||
}
|
||||
|
||||
private void updateAlarm() {
|
||||
alarm.setSmartWakeup(cbSmartWakeup.isChecked());
|
||||
alarm.setSmartWakeup(supportsSmartWakeup() && cbSmartWakeup.isChecked());
|
||||
alarm.setRepetition(cbMonday.isChecked(), cbTuesday.isChecked(), cbWednesday.isChecked(), cbThursday.isChecked(), cbFriday.isChecked(), cbSaturday.isChecked(), cbSunday.isChecked());
|
||||
alarm.setHour(timePicker.getCurrentHour());
|
||||
alarm.setMinute(timePicker.getCurrentMinute());
|
||||
|
@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<changelog>
|
||||
<release version="next">
|
||||
<change>Alarms activity improvements and fixes</change>
|
||||
</release>
|
||||
<release version="0.18.3" versioncode="90">
|
||||
<change>Fix bug that caused the same value in weekly charts for every day on Android 6 and older</change>
|
||||
</release>
|
||||
|
Loading…
Reference in New Issue
Block a user