Merge branch 'TargetApi' into ShowAccountActivity_ScrollToTop

This commit is contained in:
PhotonQyv 2017-08-23 16:50:22 +01:00
commit b13e3b71fe
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ package fr.gouv.etalab.mastodon.helper;
import android.app.Activity; import android.app.Activity;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AlertDialog; import android.support.v7.app.AlertDialog;
import android.app.DownloadManager; import android.app.DownloadManager;
import android.app.PendingIntent; import android.app.PendingIntent;
@ -971,6 +972,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() {
@RequiresApi(Build.VERSION_CODES.JELLY_BEAN)
@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);