Simplification

pull/194/merge
M66B 3 years ago
parent 88ee6f169d
commit a29f39bd7a

@ -3490,32 +3490,32 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (message == null) if (message == null)
return; return;
if (view.getId() == R.id.ibAvatar) int id = view.getId();
if (id == R.id.ibAvatar)
onViewContact(message); onViewContact(message);
else if (view.getId() == R.id.ibVerified) else if (id == R.id.ibVerified)
onShowVerified(message); onShowVerified(message);
else if (view.getId() == R.id.ibAuth) else if (id == R.id.ibAuth)
onShowAuth(message); onShowAuth(message);
else if (view.getId() == R.id.ibPriority) else if (id == R.id.ibPriority)
onShowPriority(message); onShowPriority(message);
else if (view.getId() == R.id.ibSnoozed) else if (id == R.id.ibSnoozed)
onShowSnoozed(message); onShowSnoozed(message);
else if (view.getId() == R.id.ibFlagged) else if (id == R.id.ibFlagged)
onToggleFlag(message); onToggleFlag(message);
else if (view.getId() == R.id.ibError) else if (id == R.id.ibError)
onHelp(message); onHelp(message);
else if (view.getId() == R.id.ibReceipt) else if (id == R.id.ibReceipt)
onReceipt(message); onReceipt(message);
else if (view.getId() == R.id.ibSearchContact) else if (id == R.id.ibSearchContact)
onSearchContact(message); onSearchContact(message);
else if (view.getId() == R.id.ibNotifyContact) else if (id == R.id.ibNotifyContact)
onNotifyContact(message); onNotifyContact(message);
else if (view.getId() == R.id.ibPinContact) else if (id == R.id.ibPinContact)
onPinContact(message); onPinContact(message);
else if (view.getId() == R.id.ibAddContact) else if (id == R.id.ibAddContact)
onAddContact(message); onAddContact(message);
else if (viewType == ViewType.THREAD) { else if (viewType == ViewType.THREAD) {
int id = view.getId();
if (id == R.id.ibExpanderAddress) { if (id == R.id.ibExpanderAddress) {
onToggleAddresses(message); onToggleAddresses(message);
} else if (id == R.id.ibCopyHeaders) { } else if (id == R.id.ibCopyHeaders) {

Loading…
Cancel
Save