public void update(LeakTrace leakTrace, String referenceKey, String referenceName) { if (!referenceKey.equals(this.referenceKey)) { this.referenceKey = referenceKey; this.referenceName = referenceName; this.elements = new ArrayList(leakTrace.elements); this.opened = new boolean[(this.elements.size() + 1)]; notifyDataSetChanged(); } }
public void update(LeakTrace leakTrace, String referenceKey, String referenceName) { if (referenceKey.equals(this.referenceKey)) { // Same data, nothing to change. return; } this.referenceKey = referenceKey; this.referenceName = referenceName; this.elements = new ArrayList<LeakTraceElement>(leakTrace.elements); opened = new boolean[1 + elements.size()]; notifyDataSetChanged(); }
public void update(LeakTrace leakTrace, String referenceKey, String referenceName) { if (referenceKey.equals(this.referenceKey)) { // Same data, nothing to change. return; } this.referenceKey = referenceKey; this.referenceName = referenceName; this.elements = new ArrayList<>(leakTrace.elements); opened = new boolean[1 + elements.size()]; notifyDataSetChanged(); }