Update stub implementation

Prevent some potential issues
This commit is contained in:
topjohnwu
2021-04-17 22:14:54 -07:00
parent 7e01f9c95e
commit 4c1ea0e421
4 changed files with 35 additions and 26 deletions
@@ -12,12 +12,11 @@ import android.content.Intent;
@SuppressLint("NewApi")
public class DelegateComponentFactory extends AppComponentFactory {
static DelegateComponentFactory INSTANCE;
ClassLoader loader;
AppComponentFactory receiver;
public DelegateComponentFactory() {
INSTANCE = this;
InjectAPK.componentFactory = this;
}
@Override
@@ -53,7 +52,6 @@ public class DelegateComponentFactory extends AppComponentFactory {
@Override
public ContentProvider instantiateProvider(ClassLoader cl, String className)
throws ClassNotFoundException, IllegalAccessException, InstantiationException {
if (loader == null) loader = cl;
if (receiver != null)
return receiver.instantiateProvider(loader, className);
return create(className);