From 40f008ae90bbd9aab9a78e1a4b1217fdcb5b589a Mon Sep 17 00:00:00 2001 From: Joonghun Park Date: Wed, 30 Oct 2013 15:22:02 +0900 Subject: [PATCH] Make delay when exit application by hw back key [title] Make delay when exit application by hw back key Change-Id: I34c3bdedd6c092ef27f98d94465b01e00d011780 --- js/UI.js | 2 +- js/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/UI.js b/js/UI.js index e67f44f..0c98206 100644 --- 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(); } diff --git a/js/app.js b/js/app.js index 1836776..08e2c25 100644 --- 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); }; /** -- 2.7.4