mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-18 06:53:35 +02:00
Added email provider description
This commit is contained in:
@@ -53,6 +53,7 @@ import java.util.concurrent.Future;
|
||||
public class EmailProvider {
|
||||
public String id;
|
||||
public String name;
|
||||
public String description;
|
||||
public boolean enabled;
|
||||
public List<String> domain;
|
||||
public int order;
|
||||
@@ -131,6 +132,9 @@ public class EmailProvider {
|
||||
provider = new EmailProvider();
|
||||
provider.id = xml.getAttributeValue(null, "id");
|
||||
provider.name = xml.getAttributeValue(null, "name");
|
||||
provider.description = xml.getAttributeValue(null, "description");
|
||||
if (provider.description == null)
|
||||
provider.description = name;
|
||||
provider.enabled = xml.getAttributeBooleanValue(null, "enabled", true);
|
||||
String domain = xml.getAttributeValue(null, "domain");
|
||||
if (domain != null)
|
||||
|
||||
@@ -191,10 +191,10 @@ public class FragmentSetup extends FragmentBase {
|
||||
if (provider.oauth != null &&
|
||||
(provider.oauth.enabled || BuildConfig.DEBUG)) {
|
||||
MenuItem item = menu
|
||||
.add(Menu.NONE, -1, order++, getString(R.string.title_setup_oauth, provider.name))
|
||||
.add(Menu.NONE, -1, order++, getString(R.string.title_setup_oauth, provider.description))
|
||||
.setIntent(new Intent(ActivitySetup.ACTION_QUICK_OAUTH)
|
||||
.putExtra("id", provider.id)
|
||||
.putExtra("name", provider.name)
|
||||
.putExtra("name", provider.description)
|
||||
.putExtra("askAccount", provider.oauth.askAccount));
|
||||
int resid = context.getResources()
|
||||
.getIdentifier("provider_" + provider.id, "drawable", context.getPackageName());
|
||||
|
||||
Reference in New Issue
Block a user