Getting rid of insertWaypoint singleton dependency.

This commit is contained in:
Rodrigo Damazio
2011-05-31 03:16:14 -03:00
parent 6a1b2861f3
commit 111adc917b
2 changed files with 30 additions and 11 deletions
@@ -390,10 +390,12 @@ public class MyTracks extends TabActivity implements OnTouchListener {
/**
* Inserts a waypoint marker.
*
* TODO: Merge with WaypointsList#insertWaypoint.
*
* @return Id of the inserted statistics marker.
* @throws RemoteException If the call on the service failed.
*/
public long insertWaypoint(WaypointCreationRequest request) throws RemoteException {
private long insertWaypoint(WaypointCreationRequest request) throws RemoteException {
ITrackRecordingService trackRecordingService = serviceBinder.getServiceIfBound();
if (trackRecordingService == null) {
throw new IllegalStateException("The recording service is not bound.");