Fix not to turn off when progress bar shows 96/142696/3
authorSungbae Yoo <sungbae.yoo@samsung.com>
Mon, 7 Aug 2017 05:01:13 +0000 (14:01 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 9 Aug 2017 06:17:25 +0000 (06:17 +0000)
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I517e749b2bf203da9f7471d50c301603b6054094

tools/apps/ode/org.tizen.ode.xml
tools/apps/ode/src/interface/progress.cpp

index 3b7cbcd..6c94e6b 100644 (file)
@@ -3,7 +3,8 @@
     <profile name="mobile"/>
     <privileges>
         <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
-       <privilege>http://tizen.org/privilege/notification</privilege>
+               <privilege>http://tizen.org/privilege/notification</privilege>
+               <privilege>http://tizen.org/privilege/display</privilege>
     </privileges>
     <ui-application appid="org.tizen.ode" exec="/usr/apps/org.tizen.ode/bin/org.tizen.ode" multiple="false" nodisplay="true" taskmanage="true" type="capp">
         <label>ODE</label>
index bcc7240..e09e2ce 100644 (file)
@@ -15,6 +15,8 @@
  * limitations under the License.
  *
  */
+#include <device/power.h>
+
 #include "progress.h"
 
 ProgressPage::ProgressPage(Widget *parent, const std::string &group, const std::string &key)
@@ -183,10 +185,12 @@ void ExternalDecryptProgress::cryptoStateChangedCallback()
 InternalEncryptProgress::InternalEncryptProgress(Widget *parent)
        : ProgressPage(parent, "internal,encryption,progress", VCONFKEY_ODE_ENCRYPT_PROGRESS)
 {
+       device_power_wakeup(false);
 }
 
 InternalEncryptProgress::~InternalEncryptProgress()
 {
+       device_power_wakeup(true);
 }
 
 void InternalEncryptProgress::createPartContent()
@@ -209,10 +213,12 @@ void InternalEncryptProgress::createNotification()
 InternalDecryptProgress::InternalDecryptProgress(Widget *parent)
        : ProgressPage(parent, "internal,decryption,progress", VCONFKEY_ODE_ENCRYPT_PROGRESS)
 {
+       device_power_wakeup(false);
 }
 
 InternalDecryptProgress::~InternalDecryptProgress()
 {
+       device_power_wakeup(true);
 }
 
 void InternalDecryptProgress::createPartContent()