Set an ApplicationContext

This commit is contained in:
Romain Vimont 2023-11-03 17:52:21 +01:00
parent be50f85adb
commit 37083e2392

View File

@ -2,6 +2,7 @@ package com.genymobile.scrcpy;
import android.annotation.TargetApi;
import android.content.AttributionSource;
import android.content.Context;
import android.content.ContextWrapper;
import android.os.Build;
import android.os.Process;
@ -44,4 +45,9 @@ public final class FakeContext extends ContextWrapper {
public int getDeviceId() {
return 0;
}
@Override
public Context getApplicationContext() {
return this;
}
}