mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-10-02 06:08:45 +00:00
Fix virtual display after Android 16 upgrade
Several methods have been added upstream to IDisplayWindowListener.aidl, causing an AbstractMethodError when they are called on the listener instance implemented by scrcpy. Fixes #6234 <https://github.com/Genymobile/scrcpy/issues/6234> Fixes #6331 <https://github.com/Genymobile/scrcpy/issues/6331>
This commit is contained in:
parent
8057835a0d
commit
afaca80b37
2 changed files with 23 additions and 0 deletions
|
@ -63,4 +63,12 @@ oneway interface IDisplayWindowListener {
|
|||
* Called when the keep clear ares on a display have changed.
|
||||
*/
|
||||
void onKeepClearAreasChanged(int displayId, in List<Rect> restricted, in List<Rect> unrestricted);
|
||||
|
||||
/**
|
||||
* Called when the eligibility of the desktop mode for a display have changed.
|
||||
*/
|
||||
void onDesktopModeEligibleChanged(int displayId);
|
||||
|
||||
void onDisplayAddSystemDecorations(int displayId);
|
||||
void onDisplayRemoveSystemDecorations(int displayId);
|
||||
}
|
||||
|
|
|
@ -36,4 +36,19 @@ public class DisplayWindowListener extends IDisplayWindowListener.Stub {
|
|||
public void onKeepClearAreasChanged(int displayId, List<Rect> restricted, List<Rect> unrestricted) {
|
||||
// empty default implementation
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDesktopModeEligibleChanged(int displayId) {
|
||||
// empty default implementation
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisplayAddSystemDecorations(int displayId) {
|
||||
// empty default implementation
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisplayRemoveSystemDecorations(int displayId) {
|
||||
// empty default implementation
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue