From 447cac9af98368420829ecb9c76baeda3c0f961f Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Tue, 14 Jan 2020 16:29:09 +0100 Subject: [PATCH] Upload button: disable/grey when folder is read-only Signed-off-by: tobiasKaminsky --- .../android/ui/activity/ReceiveExternalFilesActivity.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java b/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java index 06b62f7b90..35536bad10 100755 --- a/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java @@ -757,11 +757,12 @@ public class ReceiveExternalFilesActivity extends FileActivity if (mFile.canWrite()) { btnChooseFolder.setEnabled(true); - ThemeUtils.tintDrawable(btnChooseFolder.getBackground(), - ThemeUtils.primaryColor(getAccount(), true, this)); + btnChooseFolder.setBackgroundTintList(ColorStateList.valueOf(ThemeUtils.primaryColor(getAccount(), + true, + this))); } else { btnChooseFolder.setEnabled(false); - ThemeUtils.tintDrawable(btnChooseFolder.getBackground(), Color.GRAY); + btnChooseFolder.setBackgroundTintList(ColorStateList.valueOf(Color.GRAY)); } if (getSupportActionBar() != null) {