mashlol / notify

Notify your devices from the terminal
https://mashlol.github.io/notify/
261 stars 38 forks source link

Add options menu with sound and vibration toggles #39

Closed ptdev closed 6 years ago

ptdev commented 6 years ago

Hey, me again. I needed a way to enable or disable sound/vibration from the app. This creates an options menu with both toggles. (there was already an unused (?) menu_main.xml layout so I just changed that one) The settings get saved to android shared preferences so they should stick across restarts. Also moved some hardcoded strings to the strings.xml file for consistency. Not sure if you'll want to merge this in or not, but here it is anyway in case its useful. (tested on my android 7.1.2 device only)

mashlol commented 6 years ago

Thanks @ptdev ! I saw this but forgot about it until now, I'll merge it in and perhaps make a new release in a bit - may take a few weeks though.