wordpress-mobile / wordpress-mobile/WordPress-Android
Bug: In Media Screen, 'Audio' tab only appears if there is an existing uploaded audio file
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Expected behavior
For all other file types (Video, Doc, Images), The tabs contains all the options, regardless of what exists in the library. Audio should not be any different.
Actual behavior
Audio tab only exists if there is an audio file uploaded to the library. If you delete the only one, it will disappear from the tab options again.
Steps to reproduce the behavior
- Open the Media Screen and delete all audio files if there are any
- Swipe the tab bar left and right, you will see there is no "Audio" option
- Use the "+" button to add an audio file
- Swipe the tab bar once the upload is done and you will see the "Audio" tab
- Delete the file and you will see the tab disappear
Tested on [device], Android [version], WPAndroid [version]
Samsung S20, Android 10, WPAndroid 15.5-rc-2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Media Screen and reproduce the tab bar behavior with no uploaded audio, then upload and delete an audio file to compare the states. Trace the code that determines which media tabs are displayed; done means the Audio tab remains available when the library is empty and after the last audio file is deleted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100