From 34cef89ce8e4ddfd7a38df18741bbc1516fc8c05 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Mon, 21 Jan 2019 23:04:49 +0100 Subject: [PATCH] set background color for primary action buttons on upload and participate Signed-off-by: Andy Scherzinger --- .../com/owncloud/android/ui/activity/CommunityActivity.java | 2 +- .../com/owncloud/android/ui/activity/UploadFilesActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/CommunityActivity.java b/src/main/java/com/owncloud/android/ui/activity/CommunityActivity.java index 04fb42d90f..d877064105 100644 --- a/src/main/java/com/owncloud/android/ui/activity/CommunityActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/CommunityActivity.java @@ -93,7 +93,7 @@ public class CommunityActivity extends FileActivity { getString(R.string.contributing_link))))); MaterialButton reportButton = findViewById(R.id.community_testing_report); - reportButton.getBackground().setColorFilter(ThemeUtils.primaryColor(this, true), PorterDuff.Mode.SRC_ATOP); + reportButton.setBackgroundColor(ThemeUtils.primaryColor(this,true)); reportButton.setOnClickListener(v -> DisplayUtils.startLinkIntent(this, R.string.report_issue_link)); } diff --git a/src/main/java/com/owncloud/android/ui/activity/UploadFilesActivity.java b/src/main/java/com/owncloud/android/ui/activity/UploadFilesActivity.java index 882b457bef..66ccc616c5 100644 --- a/src/main/java/com/owncloud/android/ui/activity/UploadFilesActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/UploadFilesActivity.java @@ -178,7 +178,7 @@ public class UploadFilesActivity extends FileActivity implements mCancelButton.setOnClickListener(this); mUploadBtn = findViewById(R.id.upload_files_btn_upload); - mUploadBtn.getBackground().setColorFilter(ThemeUtils.primaryColor(this, true), PorterDuff.Mode.SRC_ATOP); + mUploadBtn.setBackgroundColor(ThemeUtils.primaryColor(this,true)); mUploadBtn.setOnClickListener(this); int localBehaviour = preferences.getUploaderBehaviour();