/** * {@inheritDoc} */ @Override public void detachView() { viewRef.clear(); }
@Override public void clear() { LIVE_SET.remove(this); super.clear(); } }
/** * clear saved activity */ public void clearLastActivity() { lastActivityCreated.clear(); }
public void release() { mRefDistributor.clear(); } }
public void release() { mHolderRef.clear(); mStarted = false; }
@Override public void clear() { LIVE_SET.remove(this); super.clear(); } }
private void flushCache() { this.lastGetEntryCache = null; this.lastGetNodeCache = null; this.lastCacheTxSrc.clear(); } }
private void clearPerformClicker() { synchronized (this) { if (mPerformClicker != null) { mPerformClicker.clear(); mPerformClicker = null; } } }
private void clearPerformLongClicker() { synchronized (this) { if (mPerformLongClicker != null) { mPerformLongClicker.clear(); mPerformLongClicker = null; } } }
void release() { delegateRef.clear(); } }
@Override public void clear() { LIVE_SET.remove(this); super.clear(); } }
/** * Releases the drawing bitmap. This should be called when {@link LineChart#onDetachedFromWindow()}. */ public void releaseBitmap() { if (mBitmapCanvas != null) { mBitmapCanvas.setBitmap(null); mBitmapCanvas = null; } if (mDrawBitmap != null) { Bitmap drawBitmap = mDrawBitmap.get(); if (drawBitmap != null) { drawBitmap.recycle(); } mDrawBitmap.clear(); mDrawBitmap = null; } }
public void destroy() { this.mIsDestroyed.set(true); this.mId = -1; this.mUrl = null; this.mContext = null; this.mFile = null; this.mDownloadWR = null; this.mIsParallelDownload = false; if (null != this.mExtraServiceImpl.get()) { this.mExtraServiceImpl.clear(); } this.mExtraServiceImpl = null; this.mIsDestroyed = null; this.mCloneExtraService = null; } }
/** * Releases the drawing bitmap. This should be called when {@link LineChart#onDetachedFromWindow()}. */ public void releaseBitmap() { if (mBitmapCanvas != null) { mBitmapCanvas.setBitmap(null); mBitmapCanvas = null; } if (mDrawBitmap != null) { Bitmap drawBitmap = mDrawBitmap.get(); if (drawBitmap != null) { drawBitmap.recycle(); } mDrawBitmap.clear(); mDrawBitmap = null; } } }
@Override public void run() { final RemovingItemDecorator decorator = mRefDecorator.get(); mRefDecorator.clear(); mRefDecorator = null; if (decorator != null) { decorator.onDelayedNotification(mCode); } } }
/** * Informs all of my registered cursors that they are now * invalid. */ protected void invalidateCursors() { Iterator it = _cursors.iterator(); while (it.hasNext()) { WeakReference ref = (WeakReference) it.next(); Cursor cursor = (Cursor) ref.get(); if (cursor != null) { // cursor is null if object has been garbage-collected cursor.invalidate(); ref.clear(); } it.remove(); } }
@Nullable private static Object resolveReference(WeakReference<Object> mountContentRef) { final Object mountContent = mountContentRef != null ? mountContentRef.get() : null; if (mountContent == null) { return null; } if ((mountContent instanceof Drawable) && ((Drawable) mountContent).getCallback() == null) { // MountContent have been already unmounted but we still hold reference to it, so let's clear // up the reference and return null. Actual unmounting of a view can be deferred, so don't // check it here mountContentRef.clear(); return null; } return mountContent; } }
public void clear(){ View view = getTargetView(); if (view != null){ ViewParent viewParent = view.getParent(); if (viewParent instanceof ViewGroup){ ViewGroup parent = (ViewGroup) viewParent; parent.removeView(view); mTargetViewWeakReference.clear(); } } }
/** * {@inheritDoc} */ @Override @UiThread public void detachView() { detachView(true); if (view != null) { view.clear(); view = null; } }