pashapm / libs-for-android

Automatically exported from code.google.com/p/libs-for-android
Apache License 2.0
0 stars 0 forks source link

the maximum cache size for Jamendo app demo is wrong #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
in com.google.android.demos.jamendo.app.JamendoApp

// 50% of available memory, up to a maximum of 32MB
private static final long IMAGE_CACHE_SIZE = 
Math.max(Runtime.getRuntime().maxMemory() / 2,
            32 * 1024 * 1024);

x Math.max  =>  o Math.min

Original issue reported on code.google.com by kobayash...@kayac.com on 30 Jul 2011 at 1:27

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by pbald...@google.com on 1 Sep 2011 at 5:03