diff --git a/apps/iconlaunch/ChangeLog b/apps/iconlaunch/ChangeLog index 01eba28657..ef002bda4a 100644 --- a/apps/iconlaunch/ChangeLog +++ b/apps/iconlaunch/ChangeLog @@ -27,4 +27,5 @@ 0.20: Use '28' font if installed (2v26+) and put it inside a rounded rect in the current theme Ensure 'oneClickExit' is the default 0.21: Display placeholder icons at start and render line by line to the screen to make loading seem faster -0.22: Use launcher_utils library for app cacheing and fast load \ No newline at end of file +0.22: Use launcher_utils library for app cacheing and fast load +0.23: Use Bangle.haptic if available \ No newline at end of file diff --git a/apps/iconlaunch/app.js b/apps/iconlaunch/app.js index 2e4b465be4..7813562cb7 100644 --- a/apps/iconlaunch/app.js +++ b/apps/iconlaunch/app.js @@ -98,11 +98,14 @@ let selectItem = function(id, e) { const iconN = E.clip(Math.floor((e.x - R.x) / itemSize), 0, appsN - 1); const appId = id * appsN + iconN; - if( settings.direct && launchCache.apps[appId]) + if( settings.direct && launchCache.apps[appId]) { + if(Bangle.haptic) Bangle.haptic("touch"); return require("launch_utils").loadApp(launchCache.apps[appId]); - if (appId == selectedItem && launchCache.apps[appId]) + } + if (appId == selectedItem && launchCache.apps[appId]) { + if(Bangle.haptic) Bangle.haptic("touch"); return require("launch_utils").loadApp(launchCache.apps[appId]); - + } selectedItem = appId; if (scroller) scroller.draw(); }; @@ -155,4 +158,4 @@ Bangle.on("touch", updateTimeout); updateTimeout(); -} \ No newline at end of file +} diff --git a/apps/iconlaunch/metadata.json b/apps/iconlaunch/metadata.json index 767f7a1687..14283f3207 100644 --- a/apps/iconlaunch/metadata.json +++ b/apps/iconlaunch/metadata.json @@ -2,7 +2,7 @@ "id": "iconlaunch", "name": "Icon Launcher", "shortName" : "Icon launcher", - "version": "0.22", + "version": "0.23", "icon": "app.png", "author": "TheGLander", "description": "A launcher inspired by smartphones, with an icon-only scrollable menu.", diff --git a/apps/launch/ChangeLog b/apps/launch/ChangeLog index 787f97bab6..450b0fea3d 100644 --- a/apps/launch/ChangeLog +++ b/apps/launch/ChangeLog @@ -29,4 +29,5 @@ Remove Vector Font size option (Vector fonts added as other font styles) Add Height option to set menu item height independently of Font 0.26: Use launcher_utils library for app cacheing and fast load - Highlight each item if showScroller calls draw(selected=true) \ No newline at end of file + Highlight each item if showScroller calls draw(selected=true) +0.27: Use Bangle.haptic if available diff --git a/apps/launch/app.js b/apps/launch/app.js index b45a7c3a54..ab68199e49 100644 --- a/apps/launch/app.js +++ b/apps/launch/app.js @@ -49,6 +49,7 @@ select : i => { var app = apps[i]; if (!app) return; + if (Bangle.haptic) Bangle.haptic("touch"); if (!app.src || require("Storage").read(app.src)===undefined) { E.showScroller(); E.showMessage(/*LANG*/"App Source\nNot found"); diff --git a/apps/launch/metadata.json b/apps/launch/metadata.json index 30ba0b35c8..9d2cd28109 100644 --- a/apps/launch/metadata.json +++ b/apps/launch/metadata.json @@ -2,7 +2,7 @@ "id": "launch", "name": "Launcher", "shortName": "Launcher", - "version": "0.26", + "version": "0.27", "author": "gfwilliams", "description": "This is needed to display a menu allowing you to choose your own applications. You can replace this with a customised launcher.", "readme": "README.md",