Adapt FakeContext for Android 14
This fixes audio for Android 14 developer preview 2. Fixes #3784 <https://github.com/Genymobile/scrcpy/issues/3784> Suggested-by: Namelesswonder <Namelesswonder@users.noreply.github.com>
This commit is contained in:
parent
57f879d68a
commit
2fff9b9edf
1 changed files with 6 additions and 0 deletions
|
@ -38,4 +38,10 @@ public final class FakeContext extends ContextWrapper {
|
|||
builder.setPackageName(PACKAGE_NAME);
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
// @Override to be added on SDK upgrade for Android 14
|
||||
@SuppressWarnings("unused")
|
||||
public int getDeviceId() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue