Backing out unpushed ef8239961ed3 to merge with newest TrackDataHub.

This commit is contained in:
Rodrigo Damazio
2011-10-20 20:03:18 -02:00
parent 2685309926
commit fe33982df7
@@ -240,7 +240,6 @@ public class TrackDataHub {
*/
public void start() {
Log.i(TAG, "TrackDataHub.start");
synchronized (this) {
if (startedInstance != null) {
Log.w(TAG, "Already started, ignoring");
return;
@@ -257,7 +256,6 @@ public class TrackDataHub {
// we already had external listeners.
dataSourceManager.updateAllListeners(getNeededListenerTypes());
loadSharedPreferences();
}
// If there were listeners already registered, make sure they become up-to-date.
loadDataForAllListeners();
@@ -288,7 +286,6 @@ public class TrackDataHub {
*/
public void stop() {
Log.i(TAG, "TrackDataHub.stop");
synchronized (this) {
if (!isStarted()) {
Log.w(TAG, "Not started, ignoring");
return;
@@ -305,7 +302,6 @@ public class TrackDataHub {
listenerHandlerThread = null;
listenerHandler = null;
}
}
private boolean isStarted() {
return startedInstance != null;