mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-12 20:13:45 +02:00
Edit color title
This commit is contained in:
@@ -495,7 +495,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_primary, order++, R.string.title_primary)
|
||||
.setCheckable(true).setChecked(account.primary);
|
||||
if (parentFragment instanceof FragmentAccounts)
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_color, order++, R.string.title_color);
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_edit_color, order++, R.string.title_edit_color);
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
String channelId = EntityAccount.getNotificationChannelId(account.id);
|
||||
@@ -538,7 +538,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
||||
} else if (itemId == R.string.title_primary) {
|
||||
onActionPrimary(!item.isChecked());
|
||||
return true;
|
||||
} else if (itemId == R.string.title_color) {
|
||||
} else if (itemId == R.string.title_edit_color) {
|
||||
onActionEditColor();
|
||||
return true;
|
||||
} else if (itemId == R.string.title_create_channel) {
|
||||
|
||||
@@ -659,7 +659,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
||||
}
|
||||
|
||||
if (parentFragment instanceof FragmentFolders)
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_color, order++, R.string.title_color);
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_edit_color, order++, R.string.title_edit_color);
|
||||
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_edit_properties, order++, R.string.title_edit_properties);
|
||||
|
||||
@@ -813,7 +813,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
||||
} else if (itemId == R.string.title_import_messages) {
|
||||
onActionImportMessages();
|
||||
return true;
|
||||
} else if (itemId == R.string.title_color) {
|
||||
} else if (itemId == R.string.title_edit_color) {
|
||||
onActionEditColor();
|
||||
return true;
|
||||
} else if (itemId == R.string.title_edit_properties) {
|
||||
|
||||
@@ -239,7 +239,7 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
|
||||
.setCheckable(true).setChecked(identity.primary);
|
||||
|
||||
if (parentFragment instanceof FragmentIdentities)
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_color, order++, R.string.title_color);
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_edit_color, order++, R.string.title_edit_color);
|
||||
|
||||
if (identity.sign_key != null || identity.sign_key_alias != null)
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_reset_sign_key, order++, R.string.title_reset_sign_key);
|
||||
@@ -260,7 +260,7 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
|
||||
} else if (itemId == R.string.title_primary) {
|
||||
onActionPrimary(!item.isChecked());
|
||||
return true;
|
||||
} else if (itemId == R.string.title_color) {
|
||||
} else if (itemId == R.string.title_edit_color) {
|
||||
onActionEditColor();
|
||||
return true;
|
||||
} else if (itemId == R.string.title_reset_sign_key) {
|
||||
|
||||
Reference in New Issue
Block a user