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:
Romain Vimont 2024-08-10 14:27:22 +02:00
parent 523f939532
commit 0c95794463

View File

@ -61,7 +61,14 @@ public final class Workarounds {
fillConfigurationController(); 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(); fillAppContext();
} }