Skip to content

Commit f4fe2cc

Browse files
committed
Auto Upload behaviour customized.
1 parent 9ab5d15 commit f4fe2cc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

app/src/main/java/com/owncloud/android/ui/adapter/SyncedFolderAdapter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
import java.util.concurrent.Executor;
5050
import java.util.concurrent.Executors;
5151

52+
import androidx.core.content.res.ResourcesCompat;
5253
import androidx.annotation.NonNull;
5354

5455
/**
@@ -452,7 +453,9 @@ private MainViewHolder(GridSyncItemBinding binding) {
452453
private void setSyncButtonActiveIcon(ImageButton syncStatusButton, boolean enabled) {
453454
if (enabled) {
454455
syncStatusButton.setImageDrawable(
455-
viewThemeUtils.platform.tintPrimaryDrawable(context, R.drawable.ic_cloud_sync_on)
456+
viewThemeUtils.platform.colorDrawable(ResourcesCompat.getDrawable(context.getResources(),
457+
R.drawable.ic_cloud_sync_on, null),
458+
ResourcesCompat.getColor(context.getResources(), R.color.primary, null))
456459
);
457460
} else {
458461
syncStatusButton.setImageResource(R.drawable.ic_cloud_sync_off);

app/src/main/res/values/attrs.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
<resources>
33
<string-array name="pref_behaviour_entries" translatable="false">
44
<item>@string/pref_behaviour_entries_keep_file</item>
5-
<item>@string/pref_behaviour_entries_move</item>
5+
<!-- not required for NMC -->
6+
<!-- <item>@string/pref_behaviour_entries_move</item> -->
67
<item>@string/pref_behaviour_entries_delete_file</item>
78
</string-array>
89

910
<string-array name="pref_behaviour_entryValues" translatable="false">
1011
<item>LOCAL_BEHAVIOUR_FORGET</item>
11-
<item>LOCAL_BEHAVIOUR_MOVE</item>
12+
<!-- not required for NMC -->
13+
<!-- <item>LOCAL_BEHAVIOUR_MOVE</item> -->
1214
<item>LOCAL_BEHAVIOUR_DELETE</item>
1315
</string-array>
1416

0 commit comments

Comments
 (0)