mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
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;
|
||||
String trackName = FileUtils.getName(driveFile.getTitle());
|
||||
if (!track.getName().equals(trackName)) {
|
||||
if (SyncUtils.isInMyTracks(driveFile, getFolderId()) && !track.getName().equals(trackName)) {
|
||||
track.setName(trackName);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user