From 0acd87ca787c31f9bbcd9bb245bbf6af68af5af6 Mon Sep 17 00:00:00 2001 From: Sam Judd Date: Thu, 31 Oct 2019 11:04:08 -0700 Subject: [PATCH] Avoid removing caller added listeners in GlideFutures. PiperOrigin-RevId: 277759400 --- .../com/bumptech/glide/integration/concurrent/GlideFutures.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/concurrent/src/main/java/com/bumptech/glide/integration/concurrent/GlideFutures.java b/integration/concurrent/src/main/java/com/bumptech/glide/integration/concurrent/GlideFutures.java index 91cb9357bd..cbca540ff7 100644 --- a/integration/concurrent/src/main/java/com/bumptech/glide/integration/concurrent/GlideFutures.java +++ b/integration/concurrent/src/main/java/com/bumptech/glide/integration/concurrent/GlideFutures.java @@ -36,7 +36,7 @@ public static ListenableFuture submit(final RequestBuilder requestBuil @Override public Object attachCompleter(@NonNull Completer completer) { GlideLoadingListener listener = new GlideLoadingListener<>(completer); - final FutureTarget futureTarget = requestBuilder.listener(listener).submit(); + final FutureTarget futureTarget = requestBuilder.addListener(listener).submit(); completer.addCancellationListener( new Runnable() { @Override