A few more minor fixes.

This commit is contained in:
Sandor Dornbush
2010-12-01 20:37:11 -08:00
parent 6e567fa725
commit 060881777d
3 changed files with 3 additions and 8 deletions
-2
View File
@@ -67,8 +67,6 @@ limitations under the License.
<TableRow
android:padding="1dip">
<TextView
android:id="@+id/power_label"
android:textSize="20dip"
android:layout_column="1"
android:layout_span="3"
android:text="@string/power" />
@@ -199,7 +199,6 @@ public class MyTracksProviderUtilsImpl implements MyTracksProviderUtils {
int idxAccuracy = cursor.getColumnIndexOrThrow(TrackPointsColumns.ACCURACY);
int idxSpeed = cursor.getColumnIndexOrThrow(TrackPointsColumns.SPEED);
int idxSensor = cursor.getColumnIndexOrThrow(TrackPointsColumns.SENSOR);
int idxId = cursor.getColumnIndexOrThrow(TrackPointsColumns._ID);
if (!cursor.isNull(idxLatitude)) {
location.setLatitude(1. * cursor.getInt(idxLatitude) / 1E6);
@@ -475,8 +474,7 @@ public class MyTracksProviderUtilsImpl implements MyTracksProviderUtils {
contentResolver.delete(TracksColumns.CONTENT_URI, null, null);
contentResolver.delete(TrackPointsColumns.CONTENT_URI,
null, null);
contentResolver.delete(
WaypointsColumns.CONTENT_URI, null, null);
contentResolver.delete(WaypointsColumns.CONTENT_URI, null, null);
}
@Override
@@ -886,9 +884,8 @@ public class MyTracksProviderUtilsImpl implements MyTracksProviderUtils {
@Override
public Uri insertTrackPoint(Location location, long trackId) {
Log.d(MyTracksProvider.TAG, "MyTracksProviderUtilsImpl.insertTrackPoint");
Uri u = contentResolver.insert(TrackPointsColumns.CONTENT_URI,
return contentResolver.insert(TrackPointsColumns.CONTENT_URI,
createContentValues(location, trackId));
return u;
}
@Override
@@ -33,7 +33,7 @@ public interface TrackPointsColumns extends BaseColumns {
"vnd.android.cursor.dir/vnd.google.trackpoint";
public static final String CONTENT_ITEMTYPE =
"vnd.android.cursor.item/vnd.google.trackpoint";
public static final String DEFAULT_SORT_ORDER = "trackpoints._id";
public static final String DEFAULT_SORT_ORDER = "_id";
/* All columns */
public static final String TRACKID = "trackid";