AndlyticsProject/andlytics — pull request #134 by willlunniss (2012-07-24 17:34:14+00:00)
Title: Refactor base activities

Extending on the work originally done to reduce duplicated code (BaseChartActivity), this futher cleans up the activities a bit to try and get rid of anything from the super classes that is no use to the activity on display. At the weekend I plan on doing a bit more, especailly around the async tasks/data loading in general.

Added a new BaseDetailsActitity and moved all the code from BaseActivity that is used in the details views (Comments, Downloads etc...) into the new activity. This also allowed some duplicated code from the CommentsActivity, AdmobActivity etc to be removed. LoginActivity no longer extends BaseActivity as it has no need to. I'm also using Utils.execute() for some tasks to avoid a delay on HC+ when switching accounts and when scrolling through apps during the initial load.