Skip to content

Fix: Blocked channels accessible via click navigation#72

Open
BaselGamal0 wants to merge 1 commit into
InfinityLoop1308:devfrom
BaselGamal0:fix/blocked-channel-navigation-bypass
Open

Fix: Blocked channels accessible via click navigation#72
BaselGamal0 wants to merge 1 commit into
InfinityLoop1308:devfrom
BaselGamal0:fix/blocked-channel-navigation-bypass

Conversation

@BaselGamal0

Copy link
Copy Markdown

Bug

If a user manages to click a blocked channel's icon/name or a playlist from a blocked channel, the app navigates to the channel/playlist page, bypassing the content filter.

Fix

  • Added click navigation guards in BaseListFragment that check if the target channel is blocked. If so, it shows a Toast ("This channel is in your block list") and prevents opening the fragment.
  • Added a safety net guard in ChannelFragment.handleResult() so if a blocked channel page is loaded (e.g. from deep links), it shows the Toast and immediately pops the fragment backstack.
  • Added a new string resource channel_is_blocked for the Toast message.

Added navigation guards to prevent opening blocked channel pages and playlists from blocked channels. When clicked, a toast message is shown instead. Also added a safety net in ChannelFragment to catch deep links to blocked channels.
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.

1 participant