tomayac / fugu-greetings

A sample app that features a lot of Project Fugu 🐡 APIs.
https://tomayac.github.io/fugu-greetings/public/
Apache License 2.0
62 stars 8 forks source link

Wallpaper button should be disabled/hidden if we don't have one #3

Closed christianliebel closed 4 years ago

christianliebel commented 4 years ago

When we don't have a wallpaper cached via Periodic Background Sync API, we shouldn't show the button or disable it. I would prefer disabling it so we can at least see if Periodic Sync would be available.

tomayac commented 4 years ago

I'm in the middle of restructuring this, but even with the current code there's always a fallback image in the cache in the case Periodic Background Sync hasn't run (successfully) yet.