Skip to content

Commit

Permalink
Avoid removing caller added listeners in GlideFutures.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 277759400
  • Loading branch information
sjudd authored and glide-copybara-robot committed Oct 31, 2019
1 parent e8c841c commit 0acd87c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static <T> ListenableFuture<T> submit(final RequestBuilder<T> requestBuil
@Override
public Object attachCompleter(@NonNull Completer<T> completer) {
GlideLoadingListener<T> listener = new GlideLoadingListener<>(completer);
final FutureTarget<T> futureTarget = requestBuilder.listener(listener).submit();
final FutureTarget<T> futureTarget = requestBuilder.addListener(listener).submit();
completer.addCancellationListener(
new Runnable() {
@Override
Expand Down

0 comments on commit 0acd87c

Please sign in to comment.