Fix errors logs when parsing contacts

This commit is contained in:
Sylvain Berfini 2016-08-09 08:50:04 +02:00
parent 73fa4868d0
commit 67ec4226b9

View file

@ -194,7 +194,7 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
try { try {
photoBitmap = MediaStore.Images.Media.getBitmap(ContactsManager.getInstance().getContentResolver(), photoUri); photoBitmap = MediaStore.Images.Media.getBitmap(ContactsManager.getInstance().getContentResolver(), photoUri);
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
Log.e(e); // Let's not say anything if the picture doesn't exist, it will pollute the logs
} catch (IOException e) { } catch (IOException e) {
Log.e(e); Log.e(e);
} }
@ -218,7 +218,7 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
try { try {
thumbnailBitmap = MediaStore.Images.Media.getBitmap(ContactsManager.getInstance().getContentResolver(), thumbnailUri); thumbnailBitmap = MediaStore.Images.Media.getBitmap(ContactsManager.getInstance().getContentResolver(), thumbnailUri);
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
Log.e(e); // Let's not say anything if the picture doesn't exist, it will pollute the logs
} catch (IOException e) { } catch (IOException e) {
Log.e(e); Log.e(e);
} }