File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
java/com/owncloud/android/ui/adapter Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 49
49
import java .util .concurrent .Executor ;
50
50
import java .util .concurrent .Executors ;
51
51
52
+ import androidx .core .content .res .ResourcesCompat ;
52
53
import androidx .annotation .NonNull ;
53
54
54
55
/**
@@ -452,7 +453,9 @@ private MainViewHolder(GridSyncItemBinding binding) {
452
453
private void setSyncButtonActiveIcon (ImageButton syncStatusButton , boolean enabled ) {
453
454
if (enabled ) {
454
455
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 ))
456
459
);
457
460
} else {
458
461
syncStatusButton .setImageResource (R .drawable .ic_cloud_sync_off );
Original file line number Diff line number Diff line change 2
2
<resources >
3
3
<string-array name =" pref_behaviour_entries" translatable =" false" >
4
4
<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> -->
6
7
<item >@string/pref_behaviour_entries_delete_file</item >
7
8
</string-array >
8
9
9
10
<string-array name =" pref_behaviour_entryValues" translatable =" false" >
10
11
<item >LOCAL_BEHAVIOUR_FORGET</item >
11
- <item >LOCAL_BEHAVIOUR_MOVE</item >
12
+ <!-- not required for NMC -->
13
+ <!-- <item>LOCAL_BEHAVIOUR_MOVE</item> -->
12
14
<item >LOCAL_BEHAVIOUR_DELETE</item >
13
15
</string-array >
14
16
You can’t perform that action at this time.
0 commit comments