}
#if defined(OS_TIZEN)
+// Function is same as suspend. This will be called from app lifecycle suspend
void Browser::Hide() {
+ // If application is having background catagory enabled then do not suspend the app
+ auto appdata = common::ApplicationDataManager::GetCurrentAppData();
+ if (appdata->setting_info() != NULL && appdata->setting_info()->background_support_enabled()) {
+ return;
+ }
+
NativeWindow *last_window = WindowList::GetLastWindow();
if (!last_window)
return;
atom::Browser::Get()->Suspend(rvh);
}
+// Function is same as resume. This will be called from app lifecycle resume
void Browser::Show() {
+ // If application is having background catagory enabled then do not resume the app
+ // as its has not suspend
+ auto appdata = common::ApplicationDataManager::GetCurrentAppData();
+ if (appdata->setting_info() != NULL && appdata->setting_info()->background_support_enabled()) {
+ return;
+ }
NativeWindow *last_window = WindowList::GetLastWindow();
if (!last_window)
return;