Skip to content

Instantly share code, notes, and snippets.

View srcreigh's full-sized avatar

Shane Creighton-Young srcreigh

View GitHub Profile
Set<WeakReference<TextView>> toRemove = new HashSet<WeakReference<TextView>>();
for (WeakReference<TextView> weakRef : textviews) {
TextView textView = weakRef.get();
if (textView != null) {
// do stuff here
} else {