From 8a93476a28cb6fb3f392197655a4d9c0649f9838 Mon Sep 17 00:00:00 2001 From: David Watkins Date: Fri, 20 Apr 2018 16:39:55 -0700 Subject: [PATCH] Add support for cordova-android 7+ This also addresses the following error: https://github.com/wymsee/cordova-imagePicker/issues/262 --- plugin.xml | 54 +++++++++++------------ src/android/Library/src/ImageFetcher.java | 2 +- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/plugin.xml b/plugin.xml index dfcd0a98..788eb49a 100644 --- a/plugin.xml +++ b/plugin.xml @@ -69,7 +69,7 @@ - + @@ -90,32 +90,32 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + diff --git a/src/android/Library/src/ImageFetcher.java b/src/android/Library/src/ImageFetcher.java index 88255bd8..170380b1 100644 --- a/src/android/Library/src/ImageFetcher.java +++ b/src/android/Library/src/ImageFetcher.java @@ -290,7 +290,7 @@ public BitmapFetcherTask getBitmapDownloaderTask() { private final HashMap sHardBitmapCache = new LinkedHashMap( HARD_CACHE_CAPACITY / 2, 0.75f, true) { @Override - protected boolean removeEldestEntry(LinkedHashMap.Entry eldest) { + protected boolean removeEldestEntry(HashMap.Entry eldest) { if (size() > HARD_CACHE_CAPACITY) { // Entries push-out of hard reference cache are transferred to // soft reference cache