Skip to content

Commit 5a63af2

Browse files
committed
ensure events are trigerred on statechange only
1 parent 8836b4f commit 5a63af2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

AppManager/RDKShellAdapter.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,10 @@ namespace WPEFramework {
651651
}
652652
}
653653
sApplicationStateMap[newcallsign] = newState;
654-
onAppStateChanged(newcallsign, newState, oldState);
654+
if (oldState != newState)
655+
{
656+
onAppStateChanged(newcallsign, newState, oldState);
657+
}
655658
}
656659

657660
const bool RDKShellAdapter::Initialize(EventListener* listener, PluginHost::IShell* service)

0 commit comments

Comments
 (0)