本文整理汇总了Java中com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils.releaseAll方法的典型用法代码示例。如果您正苦于以下问题:Java WrapperAdapterUtils.releaseAll方法的具体用法?Java WrapperAdapterUtils.releaseAll怎么用?Java WrapperAdapterUtils.releaseAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils
的用法示例。
在下文中一共展示了WrapperAdapterUtils.releaseAll方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
public void onDestroyView() {
if (slidingUpPanelLayout != null) {
slidingUpPanelLayout.removePanelSlideListener(this);
}
if (recyclerViewDragDropManager != null) {
recyclerViewDragDropManager.release();
recyclerViewDragDropManager = null;
}
if (recyclerView != null) {
recyclerView.setItemAnimator(null);
recyclerView.setAdapter(null);
recyclerView = null;
}
if (wrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(wrappedAdapter);
wrappedAdapter = null;
}
playingQueueAdapter = null;
layoutManager = null;
super.onDestroyView();
unbinder.unbind();
}
示例2: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
if (recyclerViewDragDropManager != null) {
recyclerViewDragDropManager.release();
recyclerViewDragDropManager = null;
}
if (recyclerView != null) {
recyclerView.setItemAnimator(null);
recyclerView.setAdapter(null);
recyclerView = null;
}
if (wrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(wrappedAdapter);
wrappedAdapter = null;
}
adapter = null;
super.onDestroy();
}
示例3: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mPlayingQueueAdapter = null;
mLayoutManager = null;
super.onDestroyView();
unbinder.unbind();
}
示例4: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
super.onDestroyView();
}
示例5: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewExpandableItemManager != null) {
mRecyclerViewExpandableItemManager.release();
mRecyclerViewExpandableItemManager = null;
}
if (recyclerView != null) {
recyclerView.setItemAnimator(null);
recyclerView.setAdapter(null);
recyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
adapter = null;
super.onDestroyView();
}
示例6: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewExpandableItemManager != null) {
mRecyclerViewExpandableItemManager.release();
mRecyclerViewExpandableItemManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
super.onDestroyView();
}
示例7: releaseRecyclerView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
private void releaseRecyclerView() {
if (mRecyclerViewExpandableItemManager != null) {
mRecyclerViewExpandableItemManager.release();
mRecyclerViewExpandableItemManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
}
示例8: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (mRecyclerViewSwipeManager != null) {
mRecyclerViewSwipeManager.release();
mRecyclerViewSwipeManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
super.onDestroyView();
}
示例9: onDestroyView
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
public void onDestroyView() {
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
super.onDestroyView();
}
示例10: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
if(mPresenter != null){
mPresenter.destroy();
}
if(stickyHelper != null) {
stickyHelper.release();
}
if (mRecyclerViewExpandableItemManager != null) {
mRecyclerViewExpandableItemManager.release();
mRecyclerViewExpandableItemManager = null;
}
if (recyclerView != null) {
recyclerView.setItemAnimator(null);
recyclerView.setAdapter(null);
recyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mLayoutManager = null;
}
示例11: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
public void onDestroy() {
if (siteHolder != null)
siteHolder.onDestroy();
if (siteTagHolder != null)
siteTagHolder.onDestroy();
if (favorTagHolder != null)
favorTagHolder.onDestroy();
HViewerApplication.searchHistoryHolder.saveSearchHistory();
HViewerApplication.searchSuggestionHolder.saveSearchSuggestion();
if (mRecyclerViewDragDropManager != null) {
downloadManager.setAllPaused();
downloadManager.saveDownloadingTasks();
downloadManager.unbindService(this);
downloadManager = null;
}
if (mRecyclerViewDragDropManager != null) {
mRecyclerViewDragDropManager.release();
mRecyclerViewDragDropManager = null;
}
if (rvSite != null) {
rvSite.setItemAnimator(null);
rvSite.setAdapter(null);
rvSite = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
super.onDestroy();
}
示例12: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
Messenger.getInstance().unregister(Constants.MESSENGER_ID_UPDATE_RECORD, this);
if (mRecyclerViewSwipeManager != null) {
mRecyclerViewSwipeManager.release();
mRecyclerViewSwipeManager = null;
}
if (mRecyclerViewTouchActionGuardManager != null) {
mRecyclerViewTouchActionGuardManager.release();
mRecyclerViewTouchActionGuardManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
if (mLazyList != null) {
mLazyList.close();
}
for (WeakReference<LoadImageView> ref : mLoadImageViewSet) {
LoadImageView liv = ref.get();
if (liv != null) {
liv.unload();
}
}
mLoadImageViewSet.clear();
}
示例13: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
if (mRecyclerViewSwipeManager != null) {
mRecyclerViewSwipeManager.release();
mRecyclerViewSwipeManager = null;
}
if (mRecyclerViewTouchActionGuardManager != null) {
mRecyclerViewTouchActionGuardManager.release();
mRecyclerViewTouchActionGuardManager = null;
}
if (mRecyclerView != null) {
mRecyclerView.setItemAnimator(null);
mRecyclerView.setAdapter(null);
mRecyclerView = null;
}
if (mWrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(mWrappedAdapter);
mWrappedAdapter = null;
}
mAdapter = null;
mLayoutManager = null;
if (mLazyList != null) {
mLazyList.close();
}
}
示例14: releaseDragFeature
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
protected final void releaseDragFeature() {
if (recyclerViewDragDropManager != null) {
recyclerViewDragDropManager.release();
recyclerViewDragDropManager = null;
}
if (wrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(wrappedAdapter);
wrappedAdapter = null;
}
}
示例15: onDestroy
import com.h6ah4i.android.widget.advrecyclerview.utils.WrapperAdapterUtils; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
if (recyclerView != null) {
recyclerView.setAdapter(null);
recyclerView = null;
}
if (wrappedAdapter != null) {
WrapperAdapterUtils.releaseAll(wrappedAdapter);
wrappedAdapter = null;
}
adapter = null;
super.onDestroy();
}