better message if a media-type cannot be handled

This commit is contained in:
B. Petersen
2019-12-17 23:50:12 +01:00
parent 00eef7e5c8
commit 1df39de0bc
@@ -193,8 +193,7 @@ public class ApplicationDcContext extends DcContext {
context.startActivity(Intent.createChooser(intent, context.getString(R.string.chat_share_with_title)));
}
} catch (RuntimeException e) {
Toast.makeText(context, R.string.no_app_to_handle_data, Toast.LENGTH_LONG).show();
Toast.makeText(context, "Media-Type: " + mimeType, Toast.LENGTH_LONG).show();
Toast.makeText(context, String.format("%s (%s)", context.getString(R.string.no_app_to_handle_data), mimeType), Toast.LENGTH_LONG).show();
Log.i(TAG, "opening of external activity failed.", e);
}
}