mozilla-b2g/gaia — pull request #6232 by julienw (2012-11-07 08:41:50+00:00)
Title: Bug 809275 - [statusbar] add logic to show an icon if there are active d...

...ownloads

Also makes the statusbar.js testable

This adds a new icon for notifying the user that a system download is currently happening. A system download is either an app download or an app pdate or a system update.

This also adds some logic to display this icon when necessary. We add two methods: one for saying "hey, I have a new download" and one for saying "ok, a download is finished". We use a counter so that it should work even in case of concurrent downloads.

This PR adds a test file for this new behaviour and makes the necessary changes in statusbar.js to make it easily testable.

I also included a decent icon I made myself but I'd expect a better one (or a new sprite image) from UI designers.