import com.bumptech.glide.request.target.Target; //导入方法依赖的package包/类

private void untrackOrDelegate(Target> target) {

boolean isOwnedByUs = untrack(target);

// We'll end up here if the Target was cleared after the RequestManager that started the request

// is destroyed. That can happen for at least two reasons:

// 1. We call clear() on a background thread using something other than Application Context

// RequestManager.

// 2. The caller retains a reference to the RequestManager after the corresponding Activity or

// Fragment is destroyed, starts a load with it, and then clears that load with a different

// RequestManager. Callers seem especially likely to do this in retained Fragments (#2262).

//

// #1 is always an error. At best the caller is leaking memory briefly in something like an

// AsyncTask. At worst the caller is leaking an Activity or Fragment for a sustained period of

// time if they do something like reference the Activity RequestManager in a long lived

// background thread or task.

//

// #2 is always an error. Callers shouldn't be starting new loads using RequestManagers after

// the corresponding Activity or Fragment is destroyed because retaining any reference to the

// RequestManager leaks memory. It's possible that there's some brief period of time during or

// immediately after onDestroy where this is reasonable, but I can't think of why.

if (!isOwnedByUs && !glide.removeFromManagers(target) && target.getRequest() != null) {

Request request = target.getRequest();

target.setRequest(null);

request.clear();

}

}

java getrequest_Java Target.getRequest方法代码示例相关推荐

  1. java kryo_Kryo框架使用方法代码示例

    Kryo框架的source已移至https://github.com/EsotericSoftware/kryo ,进入此页面,然后点击右边的Download Zip按钮,就能下载到最新版本的Kryo ...

  2. java readtimeout_Java HttpURLConnection.getReadTimeout方法代码示例

    import java.net.HttpURLConnection; //导入方法依赖的package包/类 /** * 得到响应对象 * * @param urlConnection * @retu ...

  3. java invalidate_Java Component.invalidate方法代码示例

    import java.awt.Component; //导入方法依赖的package包/类 /** Installs the component we will embed to display t ...

  4. java hasmoreelements_Java IOException.hasMoreElements方法代码示例

    import java.io.IOException; //导入方法依赖的package包/类 /** * fileName���� ���� package �������� ������ ���� ...

  5. java setmethod_Java Operation.setJavaMethod方法代码示例

    import com.sun.tools.internal.ws.processor.model.Operation; //导入方法依赖的package包/类 private void createJ ...

  6. java methode_Java Method.getTypeParameters方法代码示例

    import java.lang.reflect.Method; //导入方法依赖的package包/类 private void validateRuleMethod(MethodRuleDefin ...

  7. java cancel_Java RunnableFuture.cancel方法代码示例

    import java.util.concurrent.RunnableFuture; //导入方法依赖的package包/类 @Test public void testSnapshotAsyncC ...

  8. replaceselection();java'_Java JTextComponent.replaceSelection方法代码示例

    import javax.swing.text.JTextComponent; //导入方法依赖的package包/类 public void actionPerformed(final Action ...

  9. java setcolumnwidth_Java XSSFSheet.setColumnWidth方法代码示例

    import org.apache.poi.xssf.usermodel.XSSFSheet; //导入方法依赖的package包/类 @SuppressWarnings("unchecke ...

最新文章

  1. python label怎么用_python tkinter label标签怎么使用?
  2. linux epoll网络模型 et模式 EPOLLOUT EPOLLIN 触发条件
  3. Hyperledger Fabric 交易流程
  4. adb devices 里面有很多 emulator-XXXX的解决方法
  5. spyder 护眼背景
  6. 【Python基础入门系列】第05天:Python函数
  7. 用Markdown写博客快速入门
  8. mysql序列 mybatis_MySQL实现序列(Sequence)效果以及在Mybatis中如何使用这种策略
  9. java mysql结果集_Java JDBC结果集的处理
  10. 架构师都应该知道的康威定律
  11. vijos 1602
  12. 微型计算机原理王忠民PPT,微型计算机原理4 王忠民著.ppt
  13. 初中计算机课使用的软件,初中信息技术课软件.doc
  14. topaz滤镜 V1.31中文版
  15. 集线器、交换机、路由器以及端口带宽区别
  16. b标签、Strong标签、h1标签的区别以及使用
  17. 路径与轨迹、路径规划与轨迹规划、路径跟踪与轨迹跟踪
  18. 蓝桥杯Java B组2015年真题
  19. JLINK的SW调试模式连线方式
  20. 云计算基础服务(四) http协议--虚拟主机

热门文章

  1. 基于Bootstrap的网站后台模板Metronic
  2. DOS命令之ping命令大全详解
  3. codeigniter:去掉 URL 中的 index.php
  4. 查看容器ID以及如何在docker和宿主机之间复制文件
  5. 【C++ STL学习之三】容器deque深入学习
  6. tar打包的时候忽略一些目录
  7. 使用pt-query-digest时遇到报错can't locate Digest/MD5.pm in @INC (@INC contains: /usr/local/lib64/perl5
  8. linux释放cache
  9. eclipse创建第一个golang项目
  10. 趣图:产品还没测试直接投入生产时