mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Debug: provider
This commit is contained in:
parent
a7c79ffc0c
commit
7eaf0bdd7a
2 changed files with 10 additions and 2 deletions
|
@ -68,6 +68,7 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
|
|||
private LayoutInflater inflater;
|
||||
|
||||
private int colorStripeWidth;
|
||||
private boolean debug;
|
||||
|
||||
private List<TupleIdentityEx> items = new ArrayList<>();
|
||||
|
||||
|
@ -139,7 +140,11 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
|
|||
ivPrimary.setVisibility(identity.primary ? View.VISIBLE : View.GONE);
|
||||
ivGroup.setVisibility(identity.self ? View.GONE : View.VISIBLE);
|
||||
tvName.setText(identity.getDisplayName());
|
||||
tvUser.setText(identity.email);
|
||||
|
||||
StringBuilder user = new StringBuilder(identity.email);
|
||||
if (identity.provider != null && (BuildConfig.DEBUG || debug))
|
||||
user.append(" (").append(identity.provider).append(')');
|
||||
tvUser.setText(user);
|
||||
|
||||
if ("connected".equals(identity.state)) {
|
||||
ivState.setImageResource(R.drawable.twotone_cloud_done_24);
|
||||
|
@ -420,6 +425,7 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
|
|||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean color_stripe_wide = prefs.getBoolean("color_stripe_wide", false);
|
||||
this.colorStripeWidth = Helper.dp2pixels(context, color_stripe_wide ? 12 : 6);
|
||||
this.debug = prefs.getBoolean("debug", false);
|
||||
|
||||
this.DTF = Helper.getDateTimeInstance(context, DateFormat.SHORT, DateFormat.SHORT);
|
||||
|
||||
|
|
|
@ -2392,6 +2392,7 @@ public class Log {
|
|||
|
||||
size += write(os, account.name + (account.primary ? "*" : "") +
|
||||
" " + (account.protocol == EntityAccount.TYPE_IMAP ? "IMAP" : "POP") + "/" + account.auth_type +
|
||||
(account.provider == null ? "" : " [" + account.provider + "]") +
|
||||
" " + account.host + ":" + account.port + "/" + account.encryption +
|
||||
" sync=" + account.synchronize +
|
||||
" exempted=" + account.poll_exempted +
|
||||
|
@ -2447,8 +2448,9 @@ public class Log {
|
|||
for (EntityIdentity identity : identities)
|
||||
if (identity.synchronize) {
|
||||
size += write(os, account.name + "/" + identity.name + (identity.primary ? "*" : "") + " " +
|
||||
identity.display + " " + identity.email + " " +
|
||||
identity.display + " " + identity.email +
|
||||
(identity.self ? "" : " !self") +
|
||||
(identity.provider == null ? "" : " [" + identity.provider + "]") +
|
||||
(TextUtils.isEmpty(identity.sender_extra_regex) ? "" : " regex=" + identity.sender_extra_regex) +
|
||||
(!identity.sender_extra ? "" : " edit" +
|
||||
(identity.sender_extra_name ? "+name" : "-name") +
|
||||
|
|
Loading…
Reference in a new issue