Added more logging around message sending and attachment downloads.

This commit is contained in:
Greyson Parrelli
2018-08-02 09:50:36 -04:00
parent 43068e0613
commit d0db6aa509
12 changed files with 53 additions and 7 deletions

View File

@@ -380,8 +380,11 @@ public class ThumbnailView extends FrameLayout {
private class DownloadClickDispatcher implements View.OnClickListener {
@Override
public void onClick(View view) {
Log.i(TAG, "onClick() for download button");
if (downloadClickListener != null && slide != null) {
downloadClickListener.onClick(view, slide);
} else {
Log.w(TAG, "Received a download button click, but unable to execute it. slide: " + String.valueOf(slide) + " downloadClickListener: " + String.valueOf(downloadClickListener));
}
}
}