android: create empty doric context instead of static one
This commit is contained in:
@@ -17,7 +17,6 @@ package pub.doric;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.text.TextUtils;
|
||||
@@ -72,8 +71,6 @@ public class DoricContext {
|
||||
private final Map<String, Animator> animators = new HashMap<>();
|
||||
private final Map<String, DoricResource> cachedResources = new WeakHashMap<>();
|
||||
private final Set<SoftReference<RetainedJavaValue>> retainedJavaValues = new HashSet<>();
|
||||
@SuppressLint("StaticFieldLeak")
|
||||
public static final DoricContext MOCK_CONTEXT = new DoricContext(Doric.application(), "", "", "");
|
||||
|
||||
public Collection<ViewNode<?>> allHeadNodes(String type) {
|
||||
Map<String, ViewNode<?>> headNode = mHeadNodes.get(type);
|
||||
|
Reference in New Issue
Block a user