// Path: src/main/java/com/github/randoapp/Constants.java
// public static final int NUMBER_OF_IMAGES_FOR_CACHING = NUMBER_OF_IMAGES_IN_ONE_SET * 2; //2 visible image sets per screen


import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
import com.android.volley.toolbox.ImageLoader;
import static com.github.randoapp.Constants.NUMBER_OF_IMAGES_FOR_CACHING;
package com.github.randoapp.cache;




public class LruMemCache extends LruCache<String, Bitmap> implements ImageLoader.ImageCache {
    public static int getDefaultLruCacheSize() {
        final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);
// Path: src/main/java/com/github/randoapp/Constants.java
// public static final int NUMBER_OF_IMAGES_FOR_CACHING = NUMBER_OF_IMAGES_IN_ONE_SET * 2; //2 visible image sets per screen


// Path: src/main/java/com/github/randoapp/cache/LruMemCache.java
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;
import com.android.volley.toolbox.ImageLoader;
import static com.github.randoapp.Constants.NUMBER_OF_IMAGES_FOR_CACHING;

package com.github.randoapp.cache;




public class LruMemCache extends LruCache<String, Bitmap> implements ImageLoader.ImageCache {
    public static int getDefaultLruCacheSize() {
        final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);
        final int cacheSize = maxMemory / NUMBER_OF_IMAGES_FOR_CACHING;