And the moment we've been all waiting for....MyTracks is no longer a singleton.

This commit is contained in:
Rodrigo Damazio
2011-06-01 01:44:07 -03:00
parent be096b9657
commit 31737efd87
5 changed files with 5 additions and 14 deletions
@@ -105,11 +105,11 @@ public class StatsActivity extends Activity implements TrackDataListener {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
preferences = getSharedPreferences(Constants.SETTINGS_NAME, 0);
dataHub = MyTracks.getInstance().getDataHub();
dataHub = TrackDataHub.getInstance(this);
utils = new StatsUtilities(this);
// The volume we want to control is the Text-To-Speech volume