1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 03:05:31 +00:00

Small improvements

This commit is contained in:
M66B 2021-10-27 13:32:32 +02:00
parent 8ce8fd05f5
commit da166f1fae
5 changed files with 2 additions and 4 deletions

View file

@ -1965,7 +1965,6 @@ 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

View file

@ -632,7 +632,6 @@ 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

View file

@ -458,7 +458,7 @@ public class FragmentContacts extends FragmentBase {
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
return new AlertDialog.Builder(getContext())
.setIcon(R.drawable.twotone_warning_24)
.setMessage(getString(R.string.title_delete_contacts))
.setTitle(getString(R.string.title_delete_contacts))
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {

View file

@ -7631,7 +7631,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
new AlertDialog.Builder(getContext())
.setIcon(R.drawable.twotone_info_24)
.setMessage(sb.toString())
.show();
}

View file

@ -779,6 +779,7 @@ public class FragmentSetup extends FragmentBase {
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
return new AlertDialog.Builder(getContext())
.setIcon(R.drawable.twotone_info_24)
.setTitle(R.string.title_setup_doze)
.setMessage(R.string.title_setup_doze_instructions)
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override