From 1d35868f514f14605831b7dee824c5cf3960a5fe Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Mon, 7 Dec 2020 11:59:24 +0100 Subject: [PATCH] add button tinting Signed-off-by: Andy Scherzinger --- .../owncloud/android/ui/activity/FileDisplayActivity.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java index b2c515078e..568cd59c64 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -296,12 +296,15 @@ public class FileDisplayActivity extends FileActivity MainApp.setStoragePath(newStorage); try { - new AlertDialog.Builder(this, R.style.Theme_ownCloud_Dialog) + AlertDialog alertDialog = new AlertDialog.Builder(this, R.style.Theme_ownCloud_Dialog) .setTitle(R.string.wrong_storage_path) .setMessage(R.string.wrong_storage_path_desc) .setNegativeButton(R.string.dialog_close, (dialog, which) -> dialog.dismiss()) .setIcon(R.drawable.ic_settings) - .show(); + .create(); + + alertDialog.show(); + alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE).setTextColor(ThemeUtils.primaryAccentColor(this)); } catch (WindowManager.BadTokenException e) { Log_OC.e(TAG, "Error showing wrong storage info, so skipping it: " + e.getMessage()); }