We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does ScreenOrientationRule need a try block around its statement evaluation?
ScreenOrientationRule
try
Current:
val orientationToRestore = defaultOrientation ?: getCurrentOrientation() statement.evaluate() onDevice().perform(setScreenOrientation(orientationToRestore))
Proposed:
val orientationToRestore = defaultOrientation ?: getCurrentOrientation() try { statement.evaluate() } finally { onDevice().perform(setScreenOrientation(orientationToRestore)) }
The text was updated successfully, but these errors were encountered:
Remove ScreenOrientationRule due to android/android-test#2308
d0785e5
No branches or pull requests
Does
ScreenOrientationRule
need atry
block around its statement evaluation?Current:
Proposed:
The text was updated successfully, but these errors were encountered: