Revert overzealous argument checking.

This commit is contained in:
Sandor Dornbush
2011-06-15 21:48:28 -07:00
parent 6d90e0bf51
commit 5d26250b45
@@ -846,7 +846,7 @@ public class MyTracksProviderUtilsImpl implements MyTracksProviderUtils {
@Override
public Cursor getLocationsCursor(long trackId, long minTrackPointId,
int maxLocations, boolean descending) {
if (trackId < 0 || maxLocations < 1) {
if (trackId < 0) {
return null;
}
@@ -870,7 +870,7 @@ public class MyTracksProviderUtilsImpl implements MyTracksProviderUtils {
@Override
public Cursor getWaypointsCursor(long trackId, long minWaypointId,
int maxWaypoints) {
if (trackId < 0 || maxWaypoints < 1) {
if (trackId < 0) {
return null;
}