Skip to content

Commit

Permalink
added comment regarding relation of FS and SAF, see GH wolpi#360 and w…
Browse files Browse the repository at this point in the history
  • Loading branch information
wolpi authored and lmagyar committed Oct 6, 2024
1 parent 0c35b1e commit 0e7f073
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 0e7f073

Please sign in to comment.