mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Replace RotationWatcher and DisplayFoldListener by a single DisplayListener, which is notified whenever the display size or dpi changes. However, the DisplayListener mechanism is broken in the first versions of Android 14 (it is fixed in android-14.0.0_r29 by commit [1]), so continue to use the old mechanism specifically for Android 14 (where DisplayListener may be broken), until we receive the first "display changed" event (which proves that it works). [1]: <https://android.googlesource.com/platform/frameworks/base.git/+/5653c6b5875df599307c3e6bfae32fb2fc17ca1f%5E%21/> Fixes #161 <https://github.com/Genymobile/scrcpy/issues/161> Fixes #1918 <https://github.com/Genymobile/scrcpy/issues/1918> Fixes #4152 <https://github.com/Genymobile/scrcpy/issues/4152> Fixes #5362 comment <https://github.com/Genymobile/scrcpy/issues/5362#issuecomment-2416219316> Refs #4469 <https://github.com/Genymobile/scrcpy/pull/4469> PR #5415 <https://github.com/Genymobile/scrcpy/pull/5415> Co-authored-by: Simon Chan <1330321+yume-chan@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| .gitignore | ||
| build.gradle | ||
| build_without_gradle.sh | ||
| meson.build | ||
| proguard-rules.pro | ||