Make delay when exit application by hw back key tizen_2.2 2.2.1_release
authorJoonghun Park <jh718.park@samsung.com>
Wed, 30 Oct 2013 06:22:02 +0000 (15:22 +0900)
committerJoonghun Park <jh718.park@samsung.com>
Wed, 30 Oct 2013 06:23:47 +0000 (15:23 +0900)
[title] Make delay when exit application by hw back key

Change-Id: I34c3bdedd6c092ef27f98d94465b01e00d011780

js/UI.js
js/app.js

index e67f44f..0c98206 100644 (file)
--- a/js/UI.js
+++ b/js/UI.js
@@ -366,7 +366,7 @@ function UI() {
                                if ($.mobile.popup.active) {
                                        $.mobile.popup.active.close();
                                } else if ($.mobile.activePage.attr('id') === 'one') {
-                                       tizen.application.getCurrentApplication().exit();
+                                       window.setTimeout(tizen.application.getCurrentApplication().exit, 1000);
                                } else {
                                        history.back();
                                }
index 1836776..08e2c25 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -181,7 +181,7 @@ var ExercisePlanner = function () {
        ExercisePlanner.prototype.exit = function () {
                this.saveConfig();
                this.stopMusic();
-               tizen.application.getCurrentApplication().exit();
+               window.setTimeout(tizen.application.getCurrentApplication().exit, 1000);
        };
 
        /**