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));
|
R.color.primary));
|
||||||
} else {
|
} else {
|
||||||
view.setBackgroundColor(Color.WHITE);
|
view.setBackgroundColor(Color.WHITE);
|
||||||
checkBoxV.setImageDrawable(DisplayUtils.tintDrawable(R.drawable.ic_checkbox_blank_outline,
|
checkBoxV.setImageResource(R.drawable.ic_checkbox_blank_outline);
|
||||||
R.color.primary));
|
|
||||||
}
|
}
|
||||||
checkBoxV.setVisibility(View.VISIBLE);
|
checkBoxV.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ import com.afollestad.sectionedrecyclerview.SectionedRecyclerViewAdapter;
|
||||||
import com.owncloud.android.R;
|
import com.owncloud.android.R;
|
||||||
import com.owncloud.android.datamodel.SyncedFolderDisplayItem;
|
import com.owncloud.android.datamodel.SyncedFolderDisplayItem;
|
||||||
import com.owncloud.android.datamodel.ThumbnailsCacheManager;
|
import com.owncloud.android.datamodel.ThumbnailsCacheManager;
|
||||||
|
import com.owncloud.android.utils.DisplayUtils;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -188,7 +189,7 @@ public class FolderSyncAdapter extends SectionedRecyclerViewAdapter<FolderSyncAd
|
||||||
|
|
||||||
private void setSyncButtonActiveIcon(ImageButton syncStatusButton, boolean enabled) {
|
private void setSyncButtonActiveIcon(ImageButton syncStatusButton, boolean enabled) {
|
||||||
if(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 {
|
} else {
|
||||||
syncStatusButton.setImageResource(R.drawable.ic_cloud_sync_off);
|
syncStatusButton.setImageResource(R.drawable.ic_cloud_sync_off);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,6 @@
|
||||||
android:background="@color/transparent"
|
android:background="@color/transparent"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:padding="@dimen/standard_half_padding"
|
android:padding="@dimen/standard_half_padding"
|
||||||
android:tint="@color/primary"
|
|
||||||
android:src="@drawable/ic_cloud_sync_off"/>
|
android:src="@drawable/ic_cloud_sync_off"/>
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
|
|
Loading…
Reference in a new issue