Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove precondition check in ShadowActivityThread resetter
Previously, the ShadowActivityThread resetter would crash in a precondition check if the ActivityThread has not been set. Generally the ActivityThread should be getting set, except if an exception occurs during test initialization. if an exception does occur early in initialization, it is not very useful to throw an exception in the resetter, as it causes the original exception message to be replaced with the Exception. Instead, just skip the resetter logic if the ActivityThread is detected to be null. Updates #8160 PiperOrigin-RevId: 527803222
- Loading branch information
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters