Import Outlook contacts when Outlook accounts

This commit is contained in:
M66B 2023-06-12 15:54:32 +02:00
parent 7dfe3cb9c4
commit e0979cb38b
1 changed files with 11 additions and 0 deletions

View File

@ -853,6 +853,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
tvDozeDone.setCompoundDrawables(null, null, null, null); tvDozeDone.setCompoundDrawables(null, null, null, null);
btnDoze.setEnabled(false); btnDoze.setEnabled(false);
tvDoze12.setVisibility(View.GONE); tvDoze12.setVisibility(View.GONE);
btnGraphContacts.setVisibility(View.GONE);
btnInbox.setEnabled(false); btnInbox.setEnabled(false);
@ -929,6 +930,16 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
btnInbox.setEnabled(done); btnInbox.setEnabled(done);
btnInbox.setTypeface(done ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT); btnInbox.setTypeface(done ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT);
boolean outlook = false;
if (accounts != null)
for (EntityAccount account : accounts)
if (account.isOutlook()) {
outlook = true;
break;
}
btnGraphContacts.setVisibility(outlook ? View.VISIBLE : View.GONE);
prefs.edit().putBoolean("has_accounts", done).apply(); prefs.edit().putBoolean("has_accounts", done).apply();
} }
}); });