diff --git a/apps/dtlaunch/ChangeLog b/apps/dtlaunch/ChangeLog index ea9ca729f..88ce167a2 100644 --- a/apps/dtlaunch/ChangeLog +++ b/apps/dtlaunch/ChangeLog @@ -16,6 +16,8 @@ 0.16: Use default Bangle formatter for booleans 0.17: Bangle 2: Fast loading on exit to clock face. Added option for exit to clock face by timeout. -0.18: Move interactions inside setUI. Replace "one click exit" with +0.18: Bangle 2: Move interactions inside setUI. Replace "one click exit" with back-functionality through setUI, adding the red back button as well. Hardware button to exit is no longer an option. +0.19: Bangle 2: Utilize new Bangle.load(), Bangle.showClock() functions to +facilitate 'fast switching' of apps where available. diff --git a/apps/dtlaunch/app-b2.js b/apps/dtlaunch/app-b2.js index df5bfc48f..b59143458 100644 --- a/apps/dtlaunch/app-b2.js +++ b/apps/dtlaunch/app-b2.js @@ -85,14 +85,13 @@ let drawPage = function(p){ }; Bangle.loadWidgets(); -//g.clear(); -//Bangle.drawWidgets(); drawPage(0); let swipeListenerDt = function(dirLeftRight, dirUpDown){ + updateTimeoutToClock(); selected = 0; oldselected=-1; - if(settings.swipeExit && dirLeftRight==1) returnToClock(); + if(settings.swipeExit && dirLeftRight==1) Bangle.showClock(); if (dirUpDown==-1||dirLeftRight==-1){ ++page; if (page>maxPage) page=0; drawPage(page); @@ -110,6 +109,7 @@ let isTouched = function(p,n){ }; let touchListenerDt = function(_,p){ + updateTimeoutToClock(); let i; for (i=0;i<4;i++){ if((page*4+i){if (timeoutToClock) clearTimeout(timeoutToClock);} }); // taken from Icon Launcher with minor alterations -var timeoutToClock; +let timeoutToClock; const updateTimeoutToClock = function(){ if (settings.timeOut!="Off"){ let time=parseInt(settings.timeOut); //the "s" will be trimmed by the parseInt if (timeoutToClock) clearTimeout(timeoutToClock); - timeoutToClock = setTimeout(returnToClock,time*1000); + timeoutToClock = setTimeout(Bangle.showClock,time*1000); } }; updateTimeoutToClock(); diff --git a/apps/dtlaunch/metadata.json b/apps/dtlaunch/metadata.json index 2892b758e..30327e282 100644 --- a/apps/dtlaunch/metadata.json +++ b/apps/dtlaunch/metadata.json @@ -1,7 +1,7 @@ { "id": "dtlaunch", "name": "Desktop Launcher", - "version": "0.18", + "version": "0.19", "description": "Desktop style App Launcher with six (four for Bangle 2) apps per page - fast access if you have lots of apps installed.", "screenshots": [{"url":"shot1.png"},{"url":"shot2.png"},{"url":"shot3.png"}], "icon": "icon.png",