From 876a7d2e8a86b20468f8b8d2651bd5350065b997 Mon Sep 17 00:00:00 2001 From: tobiaskaminsky Date: Mon, 22 May 2017 10:17:35 +0200 Subject: [PATCH] checkbox in off state: grey auto upload cloud icon in on state: tint it --- .../com/owncloud/android/ui/adapter/FileListListAdapter.java | 3 +-- .../com/owncloud/android/ui/adapter/FolderSyncAdapter.java | 3 ++- src/main/res/layout/folder_sync_item_header.xml | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/adapter/FileListListAdapter.java b/src/main/java/com/owncloud/android/ui/adapter/FileListListAdapter.java index 259f1ab815..b870961cee 100644 --- a/src/main/java/com/owncloud/android/ui/adapter/FileListListAdapter.java +++ b/src/main/java/com/owncloud/android/ui/adapter/FileListListAdapter.java @@ -334,8 +334,7 @@ public class FileListListAdapter extends BaseAdapter { R.color.primary)); } else { view.setBackgroundColor(Color.WHITE); - checkBoxV.setImageDrawable(DisplayUtils.tintDrawable(R.drawable.ic_checkbox_blank_outline, - R.color.primary)); + checkBoxV.setImageResource(R.drawable.ic_checkbox_blank_outline); } checkBoxV.setVisibility(View.VISIBLE); } diff --git a/src/main/java/com/owncloud/android/ui/adapter/FolderSyncAdapter.java b/src/main/java/com/owncloud/android/ui/adapter/FolderSyncAdapter.java index 8c21374390..3278ce4c00 100644 --- a/src/main/java/com/owncloud/android/ui/adapter/FolderSyncAdapter.java +++ b/src/main/java/com/owncloud/android/ui/adapter/FolderSyncAdapter.java @@ -35,6 +35,7 @@ import com.afollestad.sectionedrecyclerview.SectionedRecyclerViewAdapter; import com.owncloud.android.R; import com.owncloud.android.datamodel.SyncedFolderDisplayItem; import com.owncloud.android.datamodel.ThumbnailsCacheManager; +import com.owncloud.android.utils.DisplayUtils; import java.io.File; import java.util.ArrayList; @@ -188,7 +189,7 @@ public class FolderSyncAdapter extends SectionedRecyclerViewAdapter