mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 15:01:57 +03:00
checkbox in off state: grey
auto upload cloud icon in on state: tint it
This commit is contained in:
parent
a07b049887
commit
876a7d2e8a
3 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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<FolderSyncAd
|
|||
|
||||
private void setSyncButtonActiveIcon(ImageButton syncStatusButton, boolean enabled) {
|
||||
if(enabled) {
|
||||
syncStatusButton.setImageResource(R.drawable.ic_cloud_sync_on);
|
||||
syncStatusButton.setImageDrawable(DisplayUtils.tintDrawable(R.drawable.ic_cloud_sync_on, R.color.primary));
|
||||
} else {
|
||||
syncStatusButton.setImageResource(R.drawable.ic_cloud_sync_off);
|
||||
}
|
||||
|
|
|
@ -52,7 +52,6 @@
|
|||
android:background="@color/transparent"
|
||||
android:clickable="true"
|
||||
android:padding="@dimen/standard_half_padding"
|
||||
android:tint="@color/primary"
|
||||
android:src="@drawable/ic_cloud_sync_off"/>
|
||||
|
||||
<ImageButton
|
||||
|
|
Loading…
Reference in a new issue