/** * Cancel any pending loads Glide may have for the target and free any resources that may have been loaded into * the target so they may be reused. * * @param target The target to cancel loads for. */ public static void clear(FutureTarget<?> target) { target.clear(); }
@Override protected void onUnsubscribe() { if (futureTask != null) { futureTask.callback.getFutureTarget().clear(); } mainHandler.removeCallbacksAndMessages(null); GlideBlurOnSubscribe.this.context = null; } });