maltaisn / another-notes-app

Another notes app for Android, like there have been tens of thousands before.
Apache License 2.0
351 stars 36 forks source link

Fix crashes on A14, change to material3 switch and update dependencies #128

Closed GitGitro closed 10 months ago

GitGitro commented 10 months ago

Hi! i fixed the crashes on Android 14 since it now requires a new permission and we can't use USE_EXACT_ALARM since the app probably doesn't fall under the new policy

Note: Apps will not be able to publish a version of their app with this permission in the manifest unless they qualify based on the policy language.

Currently as is implemented it throws a SecurityException if the user removes the permission at runtime so I put it inside a try catch block and shows a toast saying the permission has been removed (also checking for post_notifications)

Also i changed the switches to material3, to keep consistent across the whole app studio64_tsjiCq8MdT

and i also update the AGP and some dependencies

Hope is fine as i'm still learning, any advice on how to improve is appreciated :D

maltaisn commented 10 months ago

Thanks, it works for me. It's a bit weird because when you set the first reminder you have 3 dialogs opening (reminder + notification permission + reminder permission) but I guess it works.