mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Replace explicit type with diamond operator
This commit is contained in:
parent
126a823fb5
commit
d866ab3e07
16 changed files with 43 additions and 43 deletions
|
|
@ -122,7 +122,7 @@ public class CommonsApplication extends Application {
|
|||
if (maxMem < 48L * 1024L * 1024L) {
|
||||
// Cache only one bitmap if VM memory is too small (such as Nexus One);
|
||||
Log.d("Commons", "Skipping bitmap cache; max mem is: " + maxMem);
|
||||
imageCache = new LruCache<String, Bitmap>(1);
|
||||
imageCache = new LruCache<>(1);
|
||||
} else {
|
||||
int cacheSize = (int) (maxMem / (1024 * 8));
|
||||
Log.d("Commons", "Bitmap cache size " + cacheSize + " from max mem " + maxMem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue