Fix wrong if statement about setting bg launch
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Feb 2023 03:01:30 +0000 (03:01 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Feb 2023 03:06:35 +0000 (03:06 +0000)
The default value of the background launch option is 'true'.
If the background launch is not set, AMD sets the background launch is 'true'.

Change-Id: I24f4ccccd718e1497181f87eb4c6cc06399edd40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/boot_sequencer/app_info.cc

index 4406c07f4242d273e528d25c73ab40a2412dac1b..d66f8a33bbd2782fc58b81898e6d1505e1c6e1fd 100644 (file)
@@ -210,10 +210,10 @@ AppInfo::Builder& AppInfo::Builder::SetBackgroundLaunch(
   const char* background_launch_str;
   aul_boot_sequence_get_background_launch(args.GetHandle(),
       &background_launch_str);
-  if (!strcasecmp(background_launch_str, "true"))
-    background_launch_ = true;
-  else
+  if (!strcasecmp(background_launch_str, "false"))
     background_launch_ = false;
+  else
+    background_launch_ = true;
 
   return *this;
 }