Do not set active app on an app with status 5 (run in background) for mobile framework

This commit is contained in:
Hadi Nategh 2020-08-03 15:46:47 +02:00
parent 70e8a1b3ae
commit 6525361145

View File

@ -588,8 +588,16 @@
// otherwise the first app in the list
if (activeApp =="" || !activeApp)
{
for(var i in this.applications)
{
if (restore[i]['status'] != 5)
{
activeApp = this.applications[i];
break;
}
}
this.setActiveApp(typeof this.applications.home !='undefined'?
this.applications.home:this.applications[Object.keys(this.applications)[0]]);
this.applications.home:activeApp);
}
//Set the current state of the tabs and activate TabChangeNotification.