Skip to content

Commit

Permalink
Apply PR suggestion: rename loadAnnouncementCard to updateAnnouncemen…
Browse files Browse the repository at this point in the history
…tCard
  • Loading branch information
RenanLukas committed May 21, 2024
1 parent 9d1a4b9 commit 681ab48
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class ReaderViewModel @Inject constructor(
if (initialized) return
loadTabs(savedInstanceState)
if (jetpackBrandingUtils.shouldShowJetpackPoweredBottomSheet()) showJetpackPoweredBottomSheet()
loadAnnouncementCard()
updateAnnouncementCard()
}

fun onSaveInstanceState(out: Bundle) {
Expand All @@ -146,7 +146,7 @@ class ReaderViewModel @Inject constructor(
// _showJetpackPoweredBottomSheet.value = Event(true)
}

private fun loadAnnouncementCard() {
private fun updateAnnouncementCard() {
val items = mutableListOf<ReaderAnnouncementCardItemData>()

if (readerTagsFeedFeatureConfig.isEnabled()) {
Expand Down Expand Up @@ -177,7 +177,7 @@ class ReaderViewModel @Inject constructor(
fun onAnnouncementCardDoneClick() {
readerTracker.track(AnalyticsTracker.Stat.READER_ANNOUNCEMENT_CARD_DISMISSED)
appPrefsWrapper.setShouldShowReaderAnnouncementCard(false)
loadAnnouncementCard()
updateAnnouncementCard()
}

@JvmOverloads
Expand Down

0 comments on commit 681ab48

Please sign in to comment.