projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'remotes/upstream/material_buttons' into beta
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
ui
/
adapter
/
DiskLruImageCache.java
diff --git
a/src/com/owncloud/android/ui/adapter/DiskLruImageCache.java
b/src/com/owncloud/android/ui/adapter/DiskLruImageCache.java
index
0f2536f
..
5a53a86
100644
(file)
--- a/
src/com/owncloud/android/ui/adapter/DiskLruImageCache.java
+++ b/
src/com/owncloud/android/ui/adapter/DiskLruImageCache.java
@@
-120,10
+120,10
@@
public class DiskLruImageCache {
}
final InputStream in = snapshot.getInputStream( 0 );
if ( in != null ) {
}
final InputStream in = snapshot.getInputStream( 0 );
if ( in != null ) {
- final BufferedInputStream buffIn =
+ final BufferedInputStream buffIn =
new BufferedInputStream( in, IO_BUFFER_SIZE );
new BufferedInputStream( in, IO_BUFFER_SIZE );
- bitmap = BitmapFactory.decodeStream( buffIn );
- }
+ bitmap = BitmapFactory.decodeStream( buffIn );
+ }
} catch ( IOException e ) {
e.printStackTrace();
} finally {
} catch ( IOException e ) {
e.printStackTrace();
} finally {
@@
-193,4
+193,12
@@
public class DiskLruImageCache {
e.printStackTrace();
}
}
e.printStackTrace();
}
}
+
+ public void setMaxSize(long maxSize){
+ mDiskCache.setMaxSize(maxSize);
+ }
+
+ public long getMaxSize(){
+ return mDiskCache.getMaxSize();
+ }
}
\ No newline at end of file
}
\ No newline at end of file