wordpress-mobile / wordpress-mobile/WordPress-Android

Bug: In Media Screen, 'Audio' tab only appears if there is an existing uploaded audio file

Open
#12,726 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Bug Media
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
  1. Open the Media Screen and delete all audio files if there are any
  2. Swipe the tab bar left and right, you will see there is no "Audio" option
  3. Use the "+" button to add an audio file
  4. Swipe the tab bar once the upload is done and you will see the "Audio" tab
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.