File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 18
18
#include "os_print.h"
19
19
#include "os_helpers.h"
20
20
#include "os_pic.h"
21
+ #include "os_task.h"
21
22
#include "glyphs.h"
22
23
#include "os_io_seph_ux.h"
23
24
#ifdef HAVE_SERIALIZED_NBGL
@@ -1621,7 +1622,7 @@ static void extendRefreshArea(nbgl_area_t *area)
1621
1622
void nbgl_objDraw (nbgl_obj_t * obj )
1622
1623
{
1623
1624
bool computePosition = false;
1624
- bool fromApp ;
1625
+ bool fromApp = false ;
1625
1626
1626
1627
LOG_DEBUG (OBJ_LOGGER , "nbgl_objDraw(): obj = %p\n" , obj );
1627
1628
// check whether it's necessary to compute position, and if this object belongs to
@@ -1645,6 +1646,10 @@ void nbgl_objDraw(nbgl_obj_t *obj)
1645
1646
fromApp = false;
1646
1647
}
1647
1648
}
1649
+ // forbid redrawing App screens by UX or vice versa
1650
+ if ((os_sched_current_task () == TASK_BOLOS_UX ) == fromApp ) {
1651
+ return ;
1652
+ }
1648
1653
// actually draw the object and its children, if it is allowed
1649
1654
if (objDrawingDisabled && fromApp ) {
1650
1655
return ;
You can’t perform that action at this time.
0 commit comments