Simplify Application instantiation

The constructor is public.
cameraphy
Romain Vimont 7 months ago
parent 446ea818a4
commit 8c3e2bae7b

@ -143,7 +143,7 @@ public final class Workarounds {
try {
fillActivityThread();
Application app = Application.class.newInstance();
Application app = new Application();
Field baseField = ContextWrapper.class.getDeclaredField("mBase");
baseField.setAccessible(true);
baseField.set(app, FakeContext.get());

Loading…
Cancel
Save