Screen flickering on Android

When I install my game app on Android device, app first screen visible with flickering, I cannot click buttons etc., this happens everytime when Play Protect popup promts.

If I minimize app and return back to it, flickering disappears

I removed stopAnimation() line on AppDelegate::applicationDidEnterBackground()
method and flickering gone but this is very problematic solution.

I guess whenener android popup appears on app cocos doesnt decide is it running on background or foreground and runs both applicationDidEnterBackground and applicationWillEnterForeground

I am using cocos2dx v4.0, Android device is Redmi note 9s

please help

hi doexes, its’ hard to help out based on the information you have provided. You will have to debug the problem by disabling parts of your app and see which part introduces the fliker.