@Override protected void finalize() throws Throwable { super.finalize(); if (!mHeadshot) mDeadCache.put(mUrl, mDrawable); mAllCache.remove(mDrawable); mLiveCache.remove(mUrl); clog("Zombie GC event " + mUrl); }
@Override protected void finalize() throws Throwable { super.finalize(); mDeadCache.put(mUrl, mDrawable); mAllCache.remove(mDrawable); mLiveCache.remove(mUrl); if (Constants.LOG_ENABLED) Log.i(Constants.LOGTAG, "Zombie GC event"); System.gc(); }
public void headshot() { clog("BOOM! Headshot: " + mUrl); mHeadshot = true; mLiveCache.remove(mUrl); mAllCache.remove(mDrawable); }