From 4738872f773657df7041d52a9c2b7c4a4f156e25 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Mon, 22 Jul 2024 15:37:42 +0200 Subject: [PATCH] Use brandingUtil Signed-off-by: alperozturk --- .../notes/manageaccounts/ManageAccountsActivity.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/manageaccounts/ManageAccountsActivity.java b/app/src/main/java/it/niedermann/owncloud/notes/manageaccounts/ManageAccountsActivity.java index 12dda8d7..1dd1905a 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/manageaccounts/ManageAccountsActivity.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/manageaccounts/ManageAccountsActivity.java @@ -28,6 +28,7 @@ import java.util.concurrent.Executors; import java.util.function.Function; import it.niedermann.owncloud.notes.LockedActivity; +import it.niedermann.owncloud.notes.NotesApplication; import it.niedermann.owncloud.notes.R; import it.niedermann.owncloud.notes.branding.BrandingUtil; import it.niedermann.owncloud.notes.branding.DeleteAlertDialogBuilder; @@ -146,7 +147,7 @@ public class ManageAccountsActivity extends LockedActivity implements IManageAcc binding.inputWrapper.setHint(title); - final var dialog = new MaterialAlertDialogBuilder(this) + MaterialAlertDialogBuilder alertDialogBuilder = new MaterialAlertDialogBuilder(this) .setTitle(title) .setMessage(message) .setView(binding.getRoot()) @@ -176,8 +177,13 @@ public class ManageAccountsActivity extends LockedActivity implements IManageAcc ExceptionDialogFragment.newInstance(e).show(getSupportFragmentManager(), ExceptionDialogFragment.class.getSimpleName()); } }); - }) - .show(); + }); + + NotesApplication.brandingUtil().dialog.colorMaterialAlertDialogBackground(this, alertDialogBuilder); + + var dialog = alertDialogBuilder.create(); + alertDialogBuilder.show(); + try { repository.getServerSettings(AccountImporter.getSingleSignOnAccount(this, localAccount.getAccountName()), getPreferredApiVersion(localAccount.getApiVersion())) .enqueue(new Callback<>() {