Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #131

Merged
merged 19 commits into from
Sep 19, 2021
Merged

Fixes #131

merged 19 commits into from
Sep 19, 2021

Conversation

iv-gha
Copy link
Contributor

@iv-gha iv-gha commented Sep 8, 2021

Please see commit notes

Hello Gareth.

This includes more places where PDF and image handling needs amending and more places where widening of actions to all song types is needed. Doh. A fix for Metronome overloading the async task thread pool and a major fix and performance improvement for for Nearby too!

Kind regards
Ian

…igger

Fix: Metronome - Task stopped in more places to ensure pad quickfade works (another case of it affecting another async task!) - with associated rework
Fix: Metronome and Pad Autostart for all song types
Fix: PDF page turn keeps running pads etc by use of loadsong in reloadSong mode
Change: Stagemode vibrates only on button use (not on gestureX call)
…UTOR' improving stability - no longer uses 'AsyncTask.THREAD_POOL_EXECUTOR' which alleviates risk of delay to song loads, pads, etc. when Metronome is running (observed on Android 9 but not Android 5!)
…READ_POOL_EXECUTOR)

- Visual Metronome changed to start with first sound beat
…wse elsewhere which was causing reload fail (the same approach as openFragment) - particularly needed for PDF when page turn is a reload and a fail shows page 0!

Other: Minor Popup code changes
Fix: PDF load fail adds 'That song isn't on your device...' as author line
- makePDf calls are only made if SQLite returns a song (it fails otherwise)
- For set export, PDF and Img files are exported as-is when using 'OpenSongApp song (.ost)' / 'Desktop file (no extension)' - to provide a means to export these files
Fix: Presenter mode selectSectionButtonInSong changed to support PDF and Image files
Fix: Clear of views before display of PDF/Img (no previous content!) in presentation mode
Fix: Nearby - a delete file wrapped in a try as was failing and blocking song change in some cases
Fix: 'incomingchange' mechanism needed to be reset by a file load too
- Toast message for a large file transfer
- Added cancel of any older running transfers on change of song to stop delays
- PDF and Image files are sent to all clients (was just one)
- A slow FILE song transfer could display after a newer song has displayed - these transfers are now cancelled on Host and Clients (cancelTransferIds etc)
- An arriving FILE must be for the most recent BYTE foldernamepair or it is abandoned
…ong details in the BYTES 'FILE:' transfer and abandon the FILE transfers as not needed. This reduces HOST and CLIENT work load.
@iv-gha
Copy link
Contributor Author

iv-gha commented Sep 18, 2021

Really happy with the big improvements for Nearby large FILE: transfer - code cancels old FILE transfers when a new song is sent or all when not 'receive host files'. Less work for host and client, quick song changes and only one full FILE transfer when needed. Result! Makes it much more usable for PDFs with a few page - no 4M photos please!

Copy link
Owner

@thebigg73 thebigg73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulling in changes to test

@thebigg73 thebigg73 merged commit 2720c0a into thebigg73:master Sep 19, 2021
thebigg73 added a commit that referenced this pull request Sep 19, 2021
@iv-gha
Copy link
Contributor Author

iv-gha commented Sep 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants