mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 14:04:20 +01:00
FakeContext used ActivityThread.getSystemContext() as base context only
in some cases, because it caused problems on some devices:
- warnings on Xiaomi devices [1], which are now fixed by
b8c5853aa6
- issues related to Looper [2], which are solved by just calling
Looper.prepare*()
Therefore, we can now always assign a base context, which simplifies and
helps to solve camera issues on some devices (#4392).
[1] <https://github.com/Genymobile/scrcpy/issues/4015#issuecomment-1595382142>
[2] <https://github.com/Genymobile/scrcpy/issues/3805#issuecomment-1596148031>
Fixes #4392 <https://github.com/Genymobile/scrcpy/issues/4392>