benjymous/MWM-for-Android — pull request #28 by firetech (2012-05-29 19:18:33+00:00)
Title: Actions enhancements.

Some fixes from the Braindump, and some code cleanup:

* Move the Action classes from subclasses in the ActionsApp class to a new org.metawatch.manager.actions package. The plan for Actions is for them to be quite central to MWM, and ActionsApp.java was becoming a bit cluttered...

* Move the previously anonymous implementations of the internal Actions to named subclasses in a new InternalActions class (in the org.metawatch.manager.actions package).

* Make the notifications action show the timestamp for the latest notification.

* Show the child count for ContainerActions when selected (by adding " (count)" to the name). I tried, like you suggested in the Braindump, to add the count on its own line above the timestamp (with a line drawn below it) and adding it on the same line as the timestamp, but it looked cluttered and weird...

* Show a title when browsing a ContainerAction. I also tried adding a generic "Actions" title when at the root list, and it looked quite good. Don't know if it's needed, though, as it steals valuable space...