mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 18:13:24 +02:00
Small improvements
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user