Fix media thumbnail view operation.

An extreme edge case wasn't happening on the UI thread.

Fixes #2800
Closes #2801

// FREEBIE
This commit is contained in:
Rhodey Orbits 2015-03-26 14:35:07 -07:00 committed by Moxie Marlinspike
parent 1cc581aed8
commit 857135aab1

View File

@ -612,7 +612,12 @@ public class ConversationItem extends LinearLayout {
@Override
public void onFailure(Throwable error) {
Log.w(TAG, error);
mediaThumbnail.setVisibility(View.GONE);
handler.post(new Runnable() {
@Override
public void run() {
mediaThumbnail.hide();
}
});
}
}