Bug fix: Only update drive file if it is in the MyTracks directory

This commit is contained in:
Jimmy Shih
2013-10-18 10:42:20 -07:00
parent 32834f08c5
commit cff11657f0
@@ -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);
/*