Follow legacy logic, move boost down thread logic after suspend,
legacy logis is SuspendResumeBooster::Suspend(), so move from
visibility hidden to suspend.
Change-Id: Ie710f9bc3ad535489f8f95cf565dd81c9b5d256a
Signed-off-by: liwei90727 <wei90727.li@samsung.com>
#include "wrt/src/browser/tv/wrt_native_window_tv.h"
#include "wrt/src/common/application_data.h"
#include "wrt/src/common/locale_manager.h"
+#if defined(THREAD_BOOSTER_SERVICE)
+#include "wrt/src/common/tv/wrt_thread_booster.h"
+#endif
namespace wrt {
void UiRuntimeTV::OnPause() {
UiRuntime::OnPause();
WidgetStateProvider::OnStatusChanged("pause");
+#if defined(THREAD_BOOSTER_SERVICE)
+ WRT_thread_booster::GetInstance()->BoostDownRegisteredThreads();
+#endif
}
void UiRuntimeTV::OnResume() {
#if defined(THREAD_BOOSTER_SERVICE)
if (visible) {
WRT_thread_booster::GetInstance()->BoostUpRegisteredThreads();
- } else {
- WRT_thread_booster::GetInstance()->BoostDownRegisteredThreads();
}
#endif