remove if check for email type
@@ -562,10 +562,8 @@ public class DetailedConversationAdapter extends RecyclerView.Adapter implements
}
if (isHtmlTypeMessage(message)) {
- if (isEmailTypeMessage(message)) {
- myHolder.viaEmailView.setVisibility(View.VISIBLE);
- } else {
- myHolder.viaEmailView.setVisibility(View.GONE);
+ if(myHolder.viaEmailView != null){
+ myHolder.viaEmailView.setVisibility(isEmailTypeMessage(message) ? View.VISIBLE : GONE);
}
if (myHolder.emailLayout != null) {
myHolder.emailLayout.setVisibility(View.VISIBLE);
