Fix SettingHandler 28/41428/2 accepted/tizen/mobile/20150618.040521 accepted/tizen/tv/20150618.040536 accepted/tizen/wearable/20150618.040551 submit/tizen/20150618.021950
authorTomasz Iwanek <t.iwanek@samsung.com>
Mon, 15 Jun 2015 08:37:01 +0000 (10:37 +0200)
committerPawel Sikorski <p.sikorski@samsung.com>
Mon, 15 Jun 2015 10:27:43 +0000 (03:27 -0700)
Copy-paste typo in settings reading.

'no_display' is already fixed in other commit.

Change-Id: Ie1702f803e89a81773b63a65589c867fca64cf25

src/manifest_handlers/setting_handler.cc

index da5a4ed..93720e6 100644 (file)
@@ -69,7 +69,7 @@ bool SettingHandler::Parse(
   app_info->set_background_support_enabled(background_support == "enable");
 
   std::string install_location;
-  manifest.GetString(keys::kTizenScreenOrientationKey, &install_location);
+  manifest.GetString(keys::kTizenInstallLocationKey, &install_location);
   if (strcasecmp("internal-only", install_location.c_str()) == 0)
     app_info->set_install_location(SettingInfo::InstallLocation::INTERNAL);
   else if (strcasecmp("prefer-external", install_location.c_str()) == 0)
@@ -94,16 +94,16 @@ bool SettingHandler::Parse(
 
   if (manifest.HasKey(keys::kTizenUserAgentKey)) {
     std::string user_agent;
-    manifest.GetString(keys::kTizenBackbuttonPresenceKey, &user_agent);
+    manifest.GetString(keys::kTizenUserAgentKey, &user_agent);
     app_info->set_user_agent(user_agent);
   }
 
   std::string background_vibration;
-  manifest.GetString(keys::kTizenBackbuttonPresenceKey, &background_vibration);
+  manifest.GetString(keys::kTizenBackgroundVibrationKey, &background_vibration);
   app_info->set_background_vibration(background_vibration == "enable");
 
   std::string sound_mode;
-  manifest.GetString(keys::kTizenScreenOrientationKey, &sound_mode);
+  manifest.GetString(keys::kTizenSoundModeKey, &sound_mode);
   if (strcasecmp("exclusive", sound_mode.c_str()) == 0)
     app_info->set_sound_mode(SettingInfo::SoundMode::EXCLUSIVE);