public void release() { mSubjectView = null; if (mImageConfuser != null) { mImageConfuser.recycle(); mImageConfuser.clear(); } }
// jack@150623 private void confuseSelectContent() { if (mImageConfuser == null) return; Bitmap rtnBitmap = null; ImageConfuser confuser = mImageConfuser; ArrayList<ContentSelector> selectorList = new ArrayList<ContentSelector>(mSubjectView.mContentSelectorMap.values()); for (int i = 0; i < selectorList.size(); i++) { ContentSelector selector = selectorList.get(i); Bitmap image = getSelectedContentBitmap(selector.Key, selector.Value); if (image != null) confuser.setImage(selector.Hierarchy, image); } rtnBitmap = confuser.confuse(); confuser.clear(); onContentConfused(selectorList, rtnBitmap); }