No authentication indicator when no authentication

pull/200/head
M66B 4 years ago
parent 1431a57568
commit 6579f6ec40

@ -1048,13 +1048,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibAuth.setImageLevel(0);
ibAuth.setImageTintList(ColorStateList.valueOf(colorWarning));
ibAuth.setVisibility(View.VISIBLE);
} else if (authentication_indicator &&
!EntityFolder.DRAFTS.equals(message.folderType) &&
!EntityFolder.OUTBOX.equals(message.folderType)) {
} else if (authentication_indicator) {
ibAuth.setImageLevel(auths + 1);
ibAuth.setImageTintList(ColorStateList.valueOf(
auths < 3 ? colorControlNormal : colorVerified));
ibAuth.setVisibility(View.VISIBLE);
ibAuth.setVisibility(auths > 0 ? View.VISIBLE : View.GONE);
} else
ibAuth.setVisibility(View.GONE);

Loading…
Cancel
Save