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

fix: use displayManager.getDisplay only for upcoming androidx.test.uiautomator:uiautomator:2.3.0-beta01 #588

Merged
merged 2 commits into from
Dec 30, 2023

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Dec 30, 2023

A future compatibility fix in #490

It looks like androidx.test.uiautomator.UiDevice in 2.3.0-beta01 dropped getDefaultDisplay, thus all versions should follow the displayManager.getDisplay(Display.DEFAULT_DISPLAY); way. The current master has no issue with the 2.2.0 version.

The API itself has existed since API level 17 https://developer.android.com/reference/android/hardware/display/DisplayManager#getDisplay(int), thus this change should be safe. (I have tested with an Android 9 real device. It worked)

I have tested displayManager.getDisplay(Display.DEFAULT_DISPLAY); works with Android 9 as well.

@KazuCocoa KazuCocoa merged commit 61af265 into master Dec 30, 2023
17 checks passed
@KazuCocoa KazuCocoa deleted the fix-getdisplayinfo branch December 30, 2023 15:33
github-actions bot pushed a commit that referenced this pull request Dec 30, 2023
## [5.15.2](v5.15.1...v5.15.2) (2023-12-30)

### Bug Fixes

* use displayManager.getDisplay only for upcoming androidx.test.uiautomator:uiautomator:2.3.0-beta01 ([#588](#588)) ([61af265](61af265))
Copy link

🎉 This PR is included in version 5.15.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants