1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

Log when attachment viewer cannot be found

This commit is contained in:
Daniel Applebaum 2009-11-22 17:13:06 +00:00
parent b551850827
commit 2e50cc5444

View File

@ -1397,6 +1397,7 @@ public class MessageView extends K9Activity
try {
startActivity(intent);
} catch (Exception e) {
Log.e(Email.LOG_TAG, "Could not display attachment of type " + attachment.contentType, e);
Toast toast = Toast.makeText(MessageView.this, getString(R.string.message_view_no_viewer, attachment.contentType), Toast.LENGTH_LONG);
toast.show();
}