Skip to content

Commit

Permalink
Hide reader announcement card when any feed but Discover is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLukas committed May 22, 2024
1 parent 00dd7ea commit 90fbfec
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ class ReaderViewModel @Inject constructor(
if (initialized) return
loadTabs(savedInstanceState)
if (jetpackBrandingUtils.shouldShowJetpackPoweredBottomSheet()) showJetpackPoweredBottomSheet()
updateAnnouncementCard()
}

fun onSaveInstanceState(out: Bundle) {
Expand Down Expand Up @@ -213,7 +212,9 @@ class ReaderViewModel @Inject constructor(
}

fun onTagChanged(selectedTag: ReaderTag?) {
updateAnnouncementCard()
if (selectedTag?.isDiscover == false) {
hideAnnouncementCard()
}
selectedTag?.let {
trackReaderTabShownIfNecessary(it)
}
Expand Down

0 comments on commit 90fbfec

Please sign in to comment.