meenbeese / Chronos

A simple alarm clock focused on simplicity, usability and modern design.
Apache License 2.0
66 stars 2 forks source link

Trying to play streamed radio crashes the app #67

Open LeafyLappa opened 5 months ago

LeafyLappa commented 5 months ago

How to Reproduce

App crashes with the error "lateinit property sounds has not been initialized" (for some reason it gets wrapped in a RuntimeException)

java.lang.RuntimeException: Failure delivering rsult ResultInfo{who=null, request=1909897175, result=-1, flg=0x43 ... }: B2.c: lateinit property sounds has not been initialized

By the way I searched for an existing issue and found this: https://github.com/meenbeese/Chronos/pull/1

Do you have any plans on reimplementing radio alarms? They are crucial for me.

Info

saligari commented 4 months ago

I'd also like this feature, it's the best way to wake up.

If you decide to implement it, consider also implementing a fail-safe; if there's an error, or if the audio won't load even though there's a network connection - to play another predetermined sound. These are the two most common problems I've found with radio alarms.

Thanks!