Add a space after a "throws" clause.
Only set the list adapter if it is not already set.

Should fix an IllegalStateException crash in unregisterDataSetObserver
in the Android framework. See http://crashes.to/s/ae44bec4d3a for
details.
Update to gradle build tools 1.0.0.