Snooze not working in landscape
Checklist
- [X] I can reproduce the bug with the latest version given here.
- [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- [X] This issue contains only one bug.
- [X] I have read and understood the contribution guidelines.
Affected app version
1.0.0
Affected Android/Custom ROM version
Android 8.1.0
Affected device model
Sony Xperia L3
How did you install the app?
Google Play Store
Steps to reproduce the bug
- Set an alarm
- When it goes off, rotate the device to landscape orientation
- Swipe to select snooze
Expected behavior
Snooze
Actual behavior
If in Landscape, the alarm just gets disabled, no matter wich option is selected. If the device is rotated back to portrait orientation, bevore seting the alarm to snooze, it works as expected.
I can replicate this bug.
Just to clarify: "the alarm just gets disabled" (in landscape) means, that the phone does not ring again after a few minutes (= "snoozing"). Instead nothing happens. This is the same as if the user swiped to the right to "Dismiss" an alarm.
app version 1.0.0 Android version 13 6.A.029.0 device = Fairphone 3+ How did you install the app? Google Play Store
This is happening to me as well. As soon as I start to swipe either left or right the alarm goes away and is not snoozed.
Hello, I'm a young developer looking for my first issue to learn how to contribute to an open-source project.
I tested this bug with the latest version of the GitHub project on the Android Studio emulator (Medium Phone, API 35), and it seems that the bug is resolved. The alarm appears to work correctly after I snooze it and rotate the screen to landscape.
Did I test it correctly, or did I make a mistake?
The alarm appears to work correctly after I snooze it and rotate the screen to landscape.
Read once again the steps to reproduce.
https://github.com/user-attachments/assets/86aa4818-ed3c-44b8-9cc5-f3dee905a96f
Maybe I'm just doing it wrong ? Or it's because I'm using an emulator (Medium Phone, API 35) ?
The original issue is about full screen alarms where as in your video I only see a notification. Try turning off the display using power button after setting your alarm.
Reproduction steps clearly say about "swiping", not about clicking on notification.
If you aren't familiar with the app to the point that you can properly understand reproduction steps, you shouldn't work on fixing the bug.
Okay i got it now, i had to use the power button after setting my alarm to reproduce the bug.
Sorry for the confusion but English isn't my first language and i had trouble figuring out what "swiping" meant in that context.
Thanks for the help, I still want to try to work on it if its okay.
I edited the steps to reproduce, to make it more clear, what to do and avoid further missunderstandings. Don't worry about the language, English is not my native language either.
Hello again,
I created a pull request that attempts to fix the bug by preventing the activity from rotating when the alarm rings.
I understand that this may not be the expected solution, but I would like to hear your opinion. I'm a computer science student trying to improve myself. Thank you for your patience.
preventing the activity from rotating when the alarm rings. I understand that this may not be the expected solution, but I would like to hear your opinion.
Yes, that's not the right way to solve this.
Hello again, I made a new and more conventional solution for the issue ! I'm ready to upgrade my pull request if you have any recommendation to help me improve.
Thanks! I'll check it soon...