fix background/forground of Sprite3D on android platform
using lambda function instead of member function
remove foreground event listener when GLProgramState is deleted
add background/foreground listener for Effectsprite3d/Effect3d test case
add background/foreground listener for EffectSprite/Effect framework test case
Merge pull request #6919 from dabingnn/v3.1hotfix

V3.1hotfix