From e636520a251b37c313731666bcff1f39ecf41b35 Mon Sep 17 00:00:00 2001 From: Anonymous Date: Mon, 19 Nov 2018 17:26:01 -0800 Subject: Import of Volley from GitHub to AOSP. - 1ec8e6e1e4979a8c907765e41546a4d3c63035fe Allow tracking of the request's life cycle (#238) by Artem GitOrigin-RevId: 1ec8e6e1e4979a8c907765e41546a4d3c63035fe Change-Id: Ib57d2210f4ab8116c204fc321007892bf3e02393 --- src/main/java/com/android/volley/Request.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/com/android/volley/Request.java') diff --git a/src/main/java/com/android/volley/Request.java b/src/main/java/com/android/volley/Request.java index cd7290a..0b18abb 100644 --- a/src/main/java/com/android/volley/Request.java +++ b/src/main/java/com/android/volley/Request.java @@ -251,6 +251,12 @@ public abstract class Request implements Comparable> { } } + void sendEvent(@RequestQueue.RequestEvent int event) { + if (mRequestQueue != null) { + mRequestQueue.sendRequestEvent(this, event); + } + } + /** * Associates this request with the given queue. The request queue will be notified when this * request has finished. -- cgit v1.2.3