Font size changed, app terminate
[apps/osp/Gallery.git] / src / GlGalleryApp.cpp
index 7a43aab..d7da34c 100644 (file)
@@ -38,9 +38,6 @@ using namespace Tizen::Ui;
 using namespace Tizen::Ui::Controls;
 using namespace Tizen::Ui::Scenes;
 
-static const wchar_t* PARAM_LANGUAGE = L"http://tizen.org/setting/locale.language";
-static const wchar_t* PARAM_LOCALE = L"http://tizen.org/setting/locale.country";
-
 GalleryApp::GalleryApp(void)
        : __requestId(0)
        , __pArguments(null)
@@ -181,6 +178,11 @@ GalleryApp::OnForeground(void)
                pMainFrame->Invalidate(true);
        }
 
+       ContentUpdateEventListener* pContentListener = ContentUpdateEventListener::GetInstance();
+       if (pContentListener->GetChangeNotificationStatus() == true)
+       {
+               pContentListener->ResumeOperation();
+       }
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 }
 
@@ -222,8 +224,8 @@ GalleryApp::OnAppControlRequestReceived(RequestId reqId, const String& operation
 void
 GalleryApp::OnSettingChanged(String& key)
 {
-       AppLogDebug("ENTER");
-       if (key.CompareTo(PARAM_LANGUAGE) == 0 || key.CompareTo(PARAM_LOCALE) == 0)
+       AppLogDebug("ENTER key(%ls)", key.GetPointer());
+       if (key.CompareTo(SETTING_KEY_LANGUAGE) == 0 || key.CompareTo(SETTING_KEY_FONT_SIZE) == 0)
        {
                UiApp::GetInstance()->Terminate();
        }
@@ -239,3 +241,16 @@ GalleryApp::SetFrameEnabled(const bool enabled)
                pMainFrame->SetEnabled(enabled);
        }
 }
+
+bool
+GalleryApp::IsHwKeySupported(void)
+{
+       AppLogDebug("ENTER");
+
+       bool isHwKeyExist = false;
+       Tizen::System::SystemInfo::GetValue(L"http://tizen.org/feature/input.keys.back", isHwKeyExist);
+
+       AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
+
+       return isHwKeyExist;
+}