mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 05:24:19 +01:00
Do not apply all workarounds for ONYX devices
Calling fillAppInfo() breaks video mirroring on ONYX devices.
Fixes #5182 <https://github.com/Genymobile/scrcpy/issues/5182>
Refs 2b6089cbfc
This commit is contained in:
@@ -61,7 +61,14 @@ public final class Workarounds {
|
||||
fillConfigurationController();
|
||||
}
|
||||
|
||||
fillAppInfo();
|
||||
// On ONYX devices, fillAppInfo() breaks video mirroring:
|
||||
// <https://github.com/Genymobile/scrcpy/issues/5182>
|
||||
boolean mustFillAppInfo = !Build.BRAND.equalsIgnoreCase("ONYX");
|
||||
|
||||
if (mustFillAppInfo) {
|
||||
fillAppInfo();
|
||||
}
|
||||
|
||||
fillAppContext();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user