Skip to content

Commit

Permalink
improve loading world state
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Oct 25, 2024
1 parent 92a9292 commit f46b1f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ContentRepositoryImpl<T : ContentLocalRepository>(

override suspend fun retrieveWorldState(forced: Boolean): WorldState? {
val now = Date().time
if (forced || now - this.lastWorldStateSync > 3600000) {
if (forced || now - this.lastWorldStateSync > 300000) {
val state = apiClient.getWorldState() ?: return null
lastWorldStateSync = now
localRepository.save(state)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class GiftOneGetOneHabiticaPromotion(startDate: Date?, endDate: Date?) : Habitic
binding.promoBannerTitleImage.visibility = View.GONE
binding.promoBannerDurationView.visibility = View.GONE
binding.promoBannerTitleText.visibility = View.VISIBLE
binding.promoBannerSubtitleText.text = context.getString(R.string.gift_one_get_one)
binding.promoBannerTitleText.text = context.getString(R.string.gift_one_get_one)
binding.promoBannerSubtitleText.visibility = View.VISIBLE
val formatter = SimpleDateFormat("MMM d", Locale.getDefault())
binding.promoBannerSubtitleText.text =
Expand All @@ -119,7 +119,7 @@ class GiftOneGetOneHabiticaPromotion(startDate: Date?, endDate: Date?) : Habitic
binding.content.promoBannerTitleImage.visibility = View.GONE
binding.content.promoBannerDurationView.visibility = View.GONE
binding.content.promoBannerTitleText.visibility = View.VISIBLE
binding.content.promoBannerSubtitleText.text = context.getString(R.string.gift_one_get_one)
binding.content.promoBannerTitleText.text = context.getString(R.string.gift_one_get_one)
binding.content.promoBannerSubtitleText.visibility = View.VISIBLE
val formatter = SimpleDateFormat("MMM d", Locale.getDefault())
binding.content.promoBannerSubtitleText.text =
Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NAME=4.5.0
CODE=8701
CODE=8711

0 comments on commit f46b1f8

Please sign in to comment.