[problem] Dali render once by indicator updating even indicator is not showing
[cause] Calls RequestUpdateOnce() for every indicator update signal
[solution] Check mIsShowing before updating
Change-Id: Ie03395aba8baf1764189f5d5f8df4ff2624ea199
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
{
if(mPixmap == 0)
{
+ // in case of shm indicator (not pixmap), not sure we can skip it when mIsShowing is false
CopyToBuffer();
}
else
{
- mAdaptor->RequestUpdateOnce();
+ if(mIsShowing)
+ {
+ mAdaptor->RequestUpdateOnce();
+ }
}
}
}
{
case OP_UPDATE:
DALI_LOG_INFO( gIndicatorLogFilter, Debug::General, "Indicator client received: OP_UPDATE\n" );
- if(mPixmap != 0)
+ if(mPixmap != 0 && mIsShowing)
{
mAdaptor->RequestUpdateOnce();
}