mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 03:05:31 +00:00
Dialog icons
This commit is contained in:
parent
bded0353cb
commit
6624975514
17 changed files with 22 additions and 1 deletions
|
@ -571,6 +571,7 @@ public class ActivityEML extends ActivityBase {
|
|||
adapter.add(account);
|
||||
|
||||
new AlertDialog.Builder(ActivityEML.this)
|
||||
.setIcon(R.drawable.twotone_save_alt_24)
|
||||
.setTitle(R.string.title_save_eml)
|
||||
.setAdapter(adapter, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -154,6 +154,7 @@ public class ActivitySignature extends ActivityBase {
|
|||
|
||||
if (dirty)
|
||||
new AlertDialog.Builder(ActivitySignature.this)
|
||||
.setIcon(R.drawable.twotone_save_alt_24)
|
||||
.setTitle(R.string.title_ask_save)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -1965,6 +1965,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
@Override
|
||||
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
|
||||
return new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_help_24)
|
||||
.setMessage(R.string.title_issue)
|
||||
.setPositiveButton(R.string.title_yes, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -953,7 +953,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|||
|
||||
private void onActionExpunge() {
|
||||
new AlertDialog.Builder(view.getContext())
|
||||
.setIcon(R.drawable.twotone_help_24)
|
||||
.setIcon(R.drawable.twotone_warning_24)
|
||||
.setTitle(R.string.title_expunge)
|
||||
.setMessage(R.string.title_expunge_remark)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
|
|
@ -7170,6 +7170,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
});
|
||||
|
||||
return new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_label_important_24)
|
||||
.setTitle(R.string.title_manage_keywords)
|
||||
.setView(dview)
|
||||
.setPositiveButton(android.R.string.ok, null)
|
||||
|
@ -7274,6 +7275,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
checked[i] = true;
|
||||
|
||||
return new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_label_24)
|
||||
.setTitle(R.string.title_manage_labels)
|
||||
.setMultiChoiceItems(folders, checked, new DialogInterface.OnMultiChoiceClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -632,6 +632,7 @@ public class FragmentBase extends Fragment {
|
|||
@RequiresApi(api = Build.VERSION_CODES.Q)
|
||||
private void handle(RecoverableSecurityException ex) {
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_help_24)
|
||||
.setMessage(ex.getMessage())
|
||||
.setPositiveButton(ex.getUserAction().getTitle(), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -457,6 +457,7 @@ public class FragmentContacts extends FragmentBase {
|
|||
@Override
|
||||
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
|
||||
return new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_warning_24)
|
||||
.setMessage(getString(R.string.title_delete_contacts))
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -101,6 +101,7 @@ public class FragmentDialogDuration extends FragmentDialogBase {
|
|||
}
|
||||
|
||||
Dialog dialog = new AlertDialog.Builder(context)
|
||||
.setIcon(R.drawable.twotone_timelapse_24)
|
||||
.setTitle(title)
|
||||
.setView(dview)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
|
|
@ -332,6 +332,7 @@ public class FragmentDialogFolder extends FragmentDialogBase {
|
|||
}.execute(this, args, "folder:select");
|
||||
|
||||
return new AlertDialog.Builder(context)
|
||||
.setIcon(R.drawable.twotone_folder_24)
|
||||
.setTitle(title)
|
||||
.setView(dview)
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
|
|
|
@ -206,6 +206,7 @@ public class FragmentDialogJunk extends FragmentDialogBase {
|
|||
@Override
|
||||
public void onClick(View v) {
|
||||
new AlertDialog.Builder(v.getContext())
|
||||
.setIcon(R.drawable.twotone_warning_24)
|
||||
.setTitle(R.string.title_junk_clear)
|
||||
.setMessage(R.string.title_junk_clear_hint)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
|
|
@ -59,6 +59,7 @@ public class FragmentDialogSelectAccount extends FragmentDialogBase {
|
|||
}.execute(this, new Bundle(), "messages:accounts");
|
||||
|
||||
return new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_account_circle_24)
|
||||
.setTitle(R.string.title_list_accounts)
|
||||
.setAdapter(adapter, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -200,6 +200,7 @@ public class FragmentLogs extends FragmentBase {
|
|||
}
|
||||
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_visibility_24)
|
||||
.setTitle(R.string.title_unhide)
|
||||
.setMultiChoiceItems(titles, states, new DialogInterface.OnMultiChoiceClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -7631,6 +7631,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
}
|
||||
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_info_24)
|
||||
.setMessage(sb.toString())
|
||||
.show();
|
||||
}
|
||||
|
|
|
@ -362,6 +362,7 @@ public class FragmentOptionsEncryption extends FragmentBase implements SharedPre
|
|||
@Override
|
||||
protected void onExecuted(Bundle args, List<String> issuers) {
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_info_24)
|
||||
.setTitle(R.string.title_advanced_ca)
|
||||
.setMessage(TextUtils.join("\r\n", issuers))
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
|
|
@ -926,6 +926,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
for (String key : charsets.keySet())
|
||||
sb.append(charsets.get(key).displayName()).append("\r\n");
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_info_24)
|
||||
.setTitle(R.string.title_advanced_charsets)
|
||||
.setMessage(sb.toString())
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
@ -984,6 +985,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
}
|
||||
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_info_24)
|
||||
.setTitle(R.string.title_advanced_ciphers)
|
||||
.setMessage(sb.toString())
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
@ -1069,6 +1071,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
.append("\r\n");
|
||||
|
||||
new AlertDialog.Builder(context)
|
||||
.setIcon(R.drawable.twotone_info_24)
|
||||
.setTitle(title)
|
||||
.setMessage(sb.toString())
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
|
|
@ -1533,6 +1533,7 @@ public class FragmentRule extends FragmentBase {
|
|||
}.execute(this, args, "rule:check");
|
||||
|
||||
return new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.baseline_mail_outline_24)
|
||||
.setTitle(R.string.title_rule_matched)
|
||||
.setView(dview)
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
|
|
|
@ -278,6 +278,7 @@ public class FragmentSetup extends FragmentBase {
|
|||
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_GMAIL));
|
||||
else
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_info_24)
|
||||
.setTitle(item.getTitle())
|
||||
.setMessage(R.string.title_setup_gmail_support)
|
||||
.setNeutralButton(R.string.title_info, new DialogInterface.OnClickListener() {
|
||||
|
@ -323,6 +324,7 @@ public class FragmentSetup extends FragmentBase {
|
|||
lbm.sendBroadcast(item.getIntent());
|
||||
else
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_info_24)
|
||||
.setTitle(item.getTitle())
|
||||
.setMessage(R.string.title_setup_oauth_permission)
|
||||
.setNeutralButton(R.string.title_info, new DialogInterface.OnClickListener() {
|
||||
|
@ -776,6 +778,7 @@ public class FragmentSetup extends FragmentBase {
|
|||
@Override
|
||||
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
|
||||
return new AlertDialog.Builder(getContext())
|
||||
.setIcon(R.drawable.twotone_info_24)
|
||||
.setMessage(R.string.title_setup_doze_instructions)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue