Skip to content

Commit

Permalink
added comment regarding relation of FS and SAF, see GH #360 and #395
Browse files Browse the repository at this point in the history
  • Loading branch information
wolpi committed Oct 6, 2024
1 parent f0a38c6 commit bd2f003
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public abstract class FsFileSystemView<TFile extends FsFile<TMina, ? extends FsF
public FsFileSystemView(PftpdService pftpdService, Uri safStartUrl) {
super(pftpdService);
this.mediaScannerClient = new MediaScannerClient(pftpdService.getContext());
// FS should not have some relation to SAF
// But to workaround Amdroid issues with lastModifiedTimestamps it is required anyway
this.safTimeResolution = StorageManagerUtil.getFilesystemTimeResolutionForTreeUri(safStartUrl);
this.safVolumePath = safTimeResolution != 1 ? StorageManagerUtil.getVolumePathFromTreeUri(safStartUrl, pftpdService.getContext()) : null;
}
Expand Down

0 comments on commit bd2f003

Please sign in to comment.