mirror of https://github.com/espruino/BangleApps
messages_light: Fix removal notification from the list of current notifications
parent
726a81d54f
commit
56b4709421
|
@ -7,4 +7,5 @@
|
|||
1.3: icon changed
|
||||
1.4: new management of events implemented; removed code no longer used (from now the music will be managed by the Messagesgui app)
|
||||
1.5: Fix graphic bug; View via popup while there are other open apps
|
||||
1.6: fix for #2689; ( white screen )
|
||||
1.6: fix for #2689; ( white screen )
|
||||
1.7: Fix removal notification from the list of current notifications
|
|
@ -87,6 +87,8 @@ var manageEvent = function(event) {
|
|||
showMessage(event);
|
||||
}
|
||||
else if(event.t=="remove"){
|
||||
|
||||
|
||||
//se non c'è niente nella queue e non c'è una chiamata in corso
|
||||
if( EventQueue.length==0 && !callInProgress)
|
||||
next();
|
||||
|
@ -104,7 +106,8 @@ var manageEvent = function(event) {
|
|||
});
|
||||
|
||||
//non sovrascrivo, cosi uso lo stesso oggetto in memoria e dovrei avere meno problemi di memory leak
|
||||
EventQueue.length=0;
|
||||
//EventQueue.length=0; // non più funzionante!
|
||||
EventQueue.splice(0,EventQueue.length);
|
||||
newEventQueue.forEach(element => {
|
||||
EventQueue.push(element);
|
||||
});
|
||||
|
|
|
@ -3,11 +3,11 @@ let overlayTimeout=undefined;
|
|||
exports.listener = function(type, event) {
|
||||
|
||||
|
||||
//salva gli eventi che arrivano su file
|
||||
/* events=require("Storage").readJSON("events_log",true) || [];
|
||||
//salva gli eventi che arrivano su file TOREMOVE
|
||||
/*events=require("Storage").readJSON("events_log",true) || [];
|
||||
events.push ( event)
|
||||
require("Storage").writeJSON("events_log",events);
|
||||
*/
|
||||
require("Storage").writeJSON("events_log",events);*/
|
||||
|
||||
//if (event.handled) return; // already handled/app open
|
||||
if( type=="clearAll" || type=="music" || event.id=="music") return; //lo lascio gestire a qualcun altro
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "messages_light",
|
||||
"name": "Messages Light",
|
||||
"version": "1.6",
|
||||
"version": "1.7",
|
||||
"description": "A light implementation of messages App (display notifications from iOS and Gadgetbridge/Android)",
|
||||
"icon": "app.png",
|
||||
"type": "app",
|
||||
|
|
Loading…
Reference in New Issue