forked from upstream-mirrors/OpenTracks
Bug fix: Only update drive file if it is in the MyTracks directory
This commit is contained in:
@@ -496,7 +496,7 @@ public class SyncAdapter extends AbstractThreadedSyncAdapter {
|
|||||||
}
|
}
|
||||||
File updatedDriveFile;
|
File updatedDriveFile;
|
||||||
String trackName = FileUtils.getName(driveFile.getTitle());
|
String trackName = FileUtils.getName(driveFile.getTitle());
|
||||||
if (!track.getName().equals(trackName)) {
|
if (SyncUtils.isInMyTracks(driveFile, getFolderId()) && !track.getName().equals(trackName)) {
|
||||||
track.setName(trackName);
|
track.setName(trackName);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user