From 7f0249ae1fdaf69b0ed3bf59d5b4cb5ff49446b3 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Wed, 19 Dec 2018 13:19:22 +0300 Subject: [PATCH] [tips] duration fix --- map/tips_api.cpp | 2 +- map/tips_api.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/map/tips_api.cpp b/map/tips_api.cpp index 0c2893b29b..edebf60bda 100644 --- a/map/tips_api.cpp +++ b/map/tips_api.cpp @@ -21,7 +21,7 @@ auto constexpr kShowAnyTipPeriod = std::chrono::hours(24) * 3; auto constexpr kShowSameTipPeriod = std::chrono::hours(24) * 30; // Every current trigger for a tips screen can be activated at the start of the application by // default and if the app was inactive more then 12 hours. -auto constexpr kShowTipAfterCollapsingPeriod = std::chrono::seconds(12 * 60 * 60); +auto constexpr kShowTipAfterCollapsingPeriod = std::chrono::hours(12); // If a user clicks on the action areas (highlighted or blue button) // the appropriate screen will never be shown again. size_t constexpr kActionClicksCountToDisable = 1; diff --git a/map/tips_api.hpp b/map/tips_api.hpp index d7669659c6..99834c3e70 100644 --- a/map/tips_api.hpp +++ b/map/tips_api.hpp @@ -15,7 +15,7 @@ class TipsApi { public: - using Duration = std::chrono::duration; + using Duration = std::chrono::hours; using Condition = std::function; using Conditions = std::array(eye::Tip::Type::Count)>;