mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-20 09:20:47 +00:00
Use Context.CLIPBOARD_SERVICE directly
The constant is defined in Context, not FakeContext.
This commit is contained in:
parent
38256d8ff9
commit
772f42134a
1 changed files with 2 additions and 2 deletions
|
@ -3,13 +3,13 @@ package com.genymobile.scrcpy.wrappers;
|
|||
import com.genymobile.scrcpy.FakeContext;
|
||||
|
||||
import android.content.ClipData;
|
||||
import android.content.Context;
|
||||
|
||||
public final class ClipboardManager {
|
||||
private final android.content.ClipboardManager manager;
|
||||
|
||||
static ClipboardManager create() {
|
||||
android.content.ClipboardManager manager = (android.content.ClipboardManager) FakeContext.get()
|
||||
.getSystemService(FakeContext.CLIPBOARD_SERVICE);
|
||||
android.content.ClipboardManager manager = (android.content.ClipboardManager) FakeContext.get().getSystemService(Context.CLIPBOARD_SERVICE);
|
||||
if (manager == null) {
|
||||
// Some devices have no clipboard manager
|
||||
// <https://github.com/Genymobile/scrcpy/issues/1440>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue