fenix
fenix copied to clipboard
Create a "ResetAfter" function for StrictMode that checks for debug mode
Problem
Currently, there is a StrictMode.resetAfter function in AC. However, the function does not check for debug mode, When this function is called in a production build, it ends up costing us 1-2 milliseconds resetting violation policies each time.
Acceptance Criteria
- The function reset strict mode policies only in the debug mode. Otherwise, simply runs the passed-in function block.
- replace all the existing calls to AC's
resetAfterfunction
┆Issue is synchronized with this Jira Task