diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/data/implementation/ContentRepositoryImpl.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/data/implementation/ContentRepositoryImpl.kt index d8e13a3cc..4e6712f9d 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/data/implementation/ContentRepositoryImpl.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/data/implementation/ContentRepositoryImpl.kt @@ -39,7 +39,7 @@ class ContentRepositoryImpl( 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) diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/models/promotions/GiftOneGetOneHabiticaPromotion.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/models/promotions/GiftOneGetOneHabiticaPromotion.kt index 94491c8d1..b3c2a612f 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/models/promotions/GiftOneGetOneHabiticaPromotion.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/models/promotions/GiftOneGetOneHabiticaPromotion.kt @@ -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 = @@ -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 = diff --git a/version.properties b/version.properties index c2ba05a17..2bf1c83d3 100644 --- a/version.properties +++ b/version.properties @@ -1,2 +1,2 @@ NAME=4.5.0 -CODE=8701 \ No newline at end of file +CODE=8711 \ No newline at end of file