Show capabilities in debug mode only

pull/203/head
M66B 3 years ago
parent 4686acbae8
commit bc50b0073e

@ -242,8 +242,8 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
tvId.setVisibility(settings && BuildConfig.DEBUG ? View.VISIBLE : View.GONE); tvId.setVisibility(settings && BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
tvCapabilities.setText(account.capabilities); tvCapabilities.setText(account.capabilities);
tvCapabilities.setVisibility( tvCapabilities.setVisibility(settings && debug &&
settings && !TextUtils.isEmpty(account.capabilities) ? View.VISIBLE : View.GONE); !TextUtils.isEmpty(account.capabilities) ? View.VISIBLE : View.GONE);
tvIdentity.setVisibility(account.identities > 0 || !settings ? View.GONE : View.VISIBLE); tvIdentity.setVisibility(account.identities > 0 || !settings ? View.GONE : View.VISIBLE);
tvDrafts.setVisibility(account.drafts != null || !settings ? View.GONE : View.VISIBLE); tvDrafts.setVisibility(account.drafts != null || !settings ? View.GONE : View.VISIBLE);

Loading…
Cancel
Save