Skip to content

Commit

Permalink
Use the already assigned now variable instead of getting current da…
Browse files Browse the repository at this point in the history
…te again with DateProvider.
  • Loading branch information
daniloercoli committed Mar 5, 2024
1 parent b0fe4c6 commit fffbfc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class ReaderViewModel @Inject constructor(

if (shouldBumpAnalytics) {
readerTracker.trackFollowedTagsCount(event.totalTags)
appPrefsWrapper.readerAnalyticsCountTagsTimestamp = DateProvider().getCurrentDate().time
appPrefsWrapper.readerAnalyticsCountTagsTimestamp = now
}
}

Expand All @@ -243,7 +243,7 @@ class ReaderViewModel @Inject constructor(

if (shouldBumpAnalytics) {
readerTracker.trackSubscribedSitesCount(event.totalSubscriptions)
AppPrefs.setReaderAnalyticsCountSitesTimestamp(DateProvider().getCurrentDate().time)
AppPrefs.setReaderAnalyticsCountSitesTimestamp(now)
}
}

Expand Down

0 comments on commit fffbfc1

Please sign in to comment.