Added TargetApi() annotation to onLoadingComplete() method to fix a warning.

This commit is contained in:
PhotonQyv 2017-08-19 11:05:19 +01:00
parent 18edbec7a6
commit 811199ce5b
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@
package fr.gouv.etalab.mastodon.helper; package fr.gouv.etalab.mastodon.helper;
import android.annotation.TargetApi;
import android.app.Activity; import android.app.Activity;
import android.support.v7.app.AlertDialog; import android.support.v7.app.AlertDialog;
import android.app.DownloadManager; import android.app.DownloadManager;
@ -978,6 +979,7 @@ public class Helper {
DisplayImageOptions optionNew = new DisplayImageOptions.Builder().displayer(new SimpleBitmapDisplayer()).cacheInMemory(false) DisplayImageOptions optionNew = new DisplayImageOptions.Builder().displayer(new SimpleBitmapDisplayer()).cacheInMemory(false)
.cacheOnDisk(true).resetViewBeforeLoading(true).build(); .cacheOnDisk(true).resetViewBeforeLoading(true).build();
imageLoader.loadImage(urlHeader, optionNew, new SimpleImageLoadingListener() { imageLoader.loadImage(urlHeader, optionNew, new SimpleImageLoadingListener() {
@TargetApi(16)
@Override @Override
public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) { public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
super.onLoadingComplete(imageUri, view, loadedImage); super.onLoadingComplete(imageUri, view, loadedImage);