[title] Make delay when exit application by hw back key
Change-Id: I34c3bdedd6c092ef27f98d94465b01e00d011780
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();
}
ExercisePlanner.prototype.exit = function () {
this.saveConfig();
this.stopMusic();
- tizen.application.getCurrentApplication().exit();
+ window.setTimeout(tizen.application.getCurrentApplication().exit, 1000);
};
/**