mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 01:36:55 +00:00
Added logging
This commit is contained in:
parent
8bcc1b3163
commit
732f1fbee0
1 changed files with 5 additions and 2 deletions
|
@ -442,10 +442,13 @@ public class FragmentMessage extends FragmentEx {
|
||||||
FileOutputStream os = null;
|
FileOutputStream os = null;
|
||||||
try {
|
try {
|
||||||
// Get input stream
|
// Get input stream
|
||||||
if (file.exists())
|
if (file.exists()) {
|
||||||
|
Log.i(Helper.TAG, "Using cached " + file);
|
||||||
is = new FileInputStream(file);
|
is = new FileInputStream(file);
|
||||||
else
|
} else {
|
||||||
|
Log.i(Helper.TAG, "Downloading " + source);
|
||||||
is = new URL(source).openStream();
|
is = new URL(source).openStream();
|
||||||
|
}
|
||||||
|
|
||||||
// Decode image from stream
|
// Decode image from stream
|
||||||
Bitmap bm = BitmapFactory.decodeStream(is);
|
Bitmap bm = BitmapFactory.decodeStream(is);
|
||||||
|
|
Loading…
Reference in a new issue