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

Adjust empty state message for ListInfoFragments depending on Info stream type #10304

Merged
merged 2 commits into from
Aug 6, 2023

Conversation

TobiGr
Copy link
Member

@TobiGr TobiGr commented Aug 5, 2023

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Update Extractor to not show media.ccc.de live stream rooms if they are currently not providing a live stream.
  • Show "no streams" for SoundClound, "no live streams" for MeidaCCCLiveStreamKiosk and otherwise "no videos"

Screenshots

grafik

Relies on the following changes

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

…ream type

Show "no streams" for SoundClound.
Show "no live streams" for MeidaCCCLiveStreamKiosk.
Otherwise show "no videos"
@TobiGr TobiGr added bug Issue is related to a bug media.ccc.de Service, https://media.ccc.de/ GUI Issue is related to the graphical user interface labels Aug 5, 2023
super.showEmptyState();
if (MediaCCCLiveStreamKiosk.KIOSK_ID.equals(currentInfo.getId())
&& ServiceList.MediaCCC.getServiceId() == currentInfo.getServiceId()) {
setEmptyStateMessage(R.string.no_live_streams);
Copy link
Member

Choose a reason for hiding this comment

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

This looks a bit difficult to maintain, but there is no better way atm I think. The optimal way would be for the extractor to announce what type of items a list will contain.

@Stypox Stypox merged commit 4201723 into dev Aug 6, 2023
5 of 6 checks passed
@sonarcloud
Copy link

sonarcloud bot commented Aug 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@TobiGr TobiGr deleted the fix/media.ccc.de branch August 6, 2023 20:04
This was referenced Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug GUI Issue is related to the graphical user interface media.ccc.de Service, https://media.ccc.de/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants