Skip to content

Conversation

@TranceLove
Copy link
Collaborator

@TranceLove TranceLove commented Aug 17, 2020

PR Info

Issue tracker

Addresses #1951

Release

Addresses release/3.5

Test cases

  • Covered

Manual testing

  • Done

If yes,

  • Device: Fairphone 3
  • OS: LineageOS 16.0 (9.0)

Build tasks success

Successfully running following tasks on local

  • ./gradlew assembledebug
  • ./gradlew spotlessCheck

Additional Info

Changes:

  • Allow USB device detection on Android >= N
  • Add back missing dialog.show() in Drawer when asking user to open USB device root at Android DocumentsUI
  • Moved SSH isDirectory() symlink checks to SshClientUtil
  • combined MediaStore image/video query methods together + fix arguments

Known issue:
Amaze cannot detect USB device inserted while running. Debug mode saw Amaze did able to detect USB and put item drawer, but not at normal run.

@TranceLove TranceLove added Issue-Bug Related unexpected behavior or something worth investigating. Area-ExternalStorage Related to external storage (SD card). labels Aug 17, 2020
@TranceLove TranceLove added this to the v3.5 milestone Aug 17, 2020
@TranceLove TranceLove requested a review from VishalNehra August 17, 2020 07:11
- Allow USB device detection on Android >= N
- Add back missing dialog.show() in Drawer when asking user to open USB device root at Android DocumentsUI
- Moved SSH isDirectory() symlink checks to SshClientUtil
- combined MediaStore image/video query methods together + fix arguments
@TranceLove TranceLove force-pushed the bugfix/1951 branch 2 times, most recently from b6a51f3 to 422e74f Compare August 17, 2020 08:31
routine using SshClientUtils.isDirectory() needs IOException
@VishalNehra
Copy link
Member

Might wanna remove PR_WIP label? ;)

@TranceLove TranceLove removed the PR-WIP label Aug 19, 2020
@TranceLove
Copy link
Collaborator Author

Might wanna remove PR_WIP label? ;)

But be reminded, plug and play may still not work after applying this PR, i.e. need to restart to see the OTG device in the drawer.

@VishalNehra
Copy link
Member

Can you make new HybridFileParcelable(smb) change in listFiles -> SFTP and forEachChildrenFile both places as well.

- use HybridFileParcelable(SmbFile) for jcifs SmbFile in HybridFile.listFiles() and HybridFile.forEachChildrenFile()
- use HybridFileParcelable(RemoteResourceInfo) for sshj RemoteResourceInfo in HybridFile.listFiles() and HybridFile.forEachChildrenFile()
- Add javadoc for the 2 new HybridFileParcelable constructors
- remove duplicated parseSmbPath() and parseSftpPath() from MainActivityHelper
@TranceLove
Copy link
Collaborator Author

See if a5473eb fits.

@VishalNehra
Copy link
Member

Sorry my bad, overlooked a bit of the code.

@VishalNehra VishalNehra removed this from the v3.5 milestone Aug 20, 2020
@TranceLove TranceLove merged commit 999f6b1 into release/3.5 Aug 20, 2020
@TranceLove TranceLove deleted the bugfix/1951 branch August 20, 2020 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-ExternalStorage Related to external storage (SD card). Issue-Bug Related unexpected behavior or something worth investigating.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants