|
|
@ -548,7 +548,7 @@ public class ContactInfo {
|
|
|
|
"." + info.type +
|
|
|
|
"." + info.type +
|
|
|
|
(info.verified ? "_verified" : ""));
|
|
|
|
(info.verified ? "_verified" : ""));
|
|
|
|
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(output))) {
|
|
|
|
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(output))) {
|
|
|
|
info.bitmap.compress(Bitmap.CompressFormat.PNG, 90, os);
|
|
|
|
info.bitmap.compress(Bitmap.CompressFormat.PNG, ImageHelper.DEFAULT_PNG_COMPRESSION, os);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Log.i("Avatar to cache=" + output.getName());
|
|
|
|
Log.i("Avatar to cache=" + output.getName());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -614,7 +614,7 @@ public class ContactInfo {
|
|
|
|
// Add to cache
|
|
|
|
// Add to cache
|
|
|
|
File output = new File(dir, etag + "." + info.type);
|
|
|
|
File output = new File(dir, etag + "." + info.type);
|
|
|
|
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(output))) {
|
|
|
|
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(output))) {
|
|
|
|
info.bitmap.compress(Bitmap.CompressFormat.PNG, 90, os);
|
|
|
|
info.bitmap.compress(Bitmap.CompressFormat.PNG, ImageHelper.DEFAULT_PNG_COMPRESSION, os);
|
|
|
|
} catch (IOException ex) {
|
|
|
|
} catch (IOException ex) {
|
|
|
|
Log.e(ex);
|
|
|
|
Log.e(ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|