forked from upstream-mirrors/OpenTracks
Style fixing
This commit is contained in:
@@ -159,7 +159,8 @@ public class TrackWriter {
|
|||||||
String fileName = fileUtils.buildUniqueFileName(
|
String fileName = fileUtils.buildUniqueFileName(
|
||||||
directory, track.getName(), writer.getExtension());
|
directory, track.getName(), writer.getExtension());
|
||||||
if (fileName == null) {
|
if (fileName == null) {
|
||||||
Log.e(MyTracksConstants.TAG, "Unable to get a unique filename for " + fileName);
|
Log.e(MyTracksConstants.TAG,
|
||||||
|
"Unable to get a unique filename for " + fileName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -179,7 +180,8 @@ public class TrackWriter {
|
|||||||
*/
|
*/
|
||||||
protected boolean canWriteFile() {
|
protected boolean canWriteFile() {
|
||||||
if (directory == null) {
|
if (directory == null) {
|
||||||
String dirName = fileUtils.buildExternalDirectoryPath(writer.getExtension());
|
String dirName =
|
||||||
|
fileUtils.buildExternalDirectoryPath(writer.getExtension());
|
||||||
directory = newFile(dirName);
|
directory = newFile(dirName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -117,7 +117,8 @@ public class TrackWriterTest extends AndroidTestCase {
|
|||||||
private static final long TRACK_ID = 1234567L;
|
private static final long TRACK_ID = 1234567L;
|
||||||
private static final String EXTENSION = "ext";
|
private static final String EXTENSION = "ext";
|
||||||
private static final String TRACK_NAME = "Swimming across the pacific";
|
private static final String TRACK_NAME = "Swimming across the pacific";
|
||||||
private static final String FULL_TRACK_NAME = "Swimming across the pacific.ext";
|
private static final String FULL_TRACK_NAME =
|
||||||
|
"Swimming across the pacific.ext";
|
||||||
|
|
||||||
private Track track;
|
private Track track;
|
||||||
private TrackFormatWriter formatWriter;
|
private TrackFormatWriter formatWriter;
|
||||||
|
|||||||
Reference in New Issue
Block a user