Skip to content
New issue

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

setRotation will only work with a delay #53

Open
thebino opened this issue Feb 17, 2017 · 0 comments
Open

setRotation will only work with a delay #53

thebino opened this issue Feb 17, 2017 · 0 comments
Labels

Comments

@thebino
Copy link

thebino commented Feb 17, 2017

changing the orientation with TestButler.setRotation doesn't

// landscape
TestButler.setRotation(Surface.ROTATION_90);
// Thread.sleep(5000);   <-- this will fix it

isLandscapeLayoutVisible();  <-- this will fail if no Thread.sleep is placed after setRotation

// portrait
TestButler.setRotation(Surface.ROTATION_0);
@drewhannay drewhannay added the bug label Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants