Hide unverified sender icon

pull/200/head
M66B 3 years ago
parent 908bd5784a
commit fd029a633f

@ -1570,12 +1570,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibVerified.setContentDescription(context.getString(main.isVerified()
? R.string.title_advanced_bimi_verified
: R.string.title_advanced_bimi_unverified));
if (main.isVerified() || BuildConfig.DEBUG) {
ibVerified.setVisibility(View.VISIBLE);
if (authentication_indicator)
ibAuth.setVisibility(View.GONE);
}
}
}
if (distinguish_contacts) {
boolean known = false;

@ -87,6 +87,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
private SwitchCompat swAvatars;
private ImageButton ibBimi;
private TextView tvBimiHint;
private TextView tvBimiUnverified;
private SwitchCompat swBimi;
private SwitchCompat swGravatars;
private TextView tvGravatarsHint;
@ -206,6 +207,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
swAvatars = view.findViewById(R.id.swAvatars);
swBimi = view.findViewById(R.id.swBimi);
tvBimiHint = view.findViewById(R.id.tvBimiHint);
tvBimiUnverified = view.findViewById(R.id.tvBimiUnverified);
ibBimi = view.findViewById(R.id.ibBimi);
swGravatars = view.findViewById(R.id.swGravatars);
tvGravatarsHint = view.findViewById(R.id.tvGravatarsHint);
@ -948,6 +950,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
// Initialize
FragmentDialogTheme.setBackground(getContext(), view, false);
grpGravatars.setVisibility(ContactInfo.canGravatars() ? View.VISIBLE : View.GONE);
tvBimiUnverified.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);

Loading…
Cancel
Save