@@ -353,30 +353,26 @@ class OCFileListDelegate(
353
353
sharedMessageView?.setTextColor(sharedWithMeColor)
354
354
}
355
355
file.isSharedWithSharee -> {
356
- val shareIcon = viewThemeUtils.platform.tintDrawable (
357
- context,
358
- AppCompatResources .getDrawable(context, R .drawable.ic_shared) !!
356
+ val shareIcon = viewThemeUtils.platform.colorDrawable (
357
+ AppCompatResources .getDrawable( context, R .drawable.ic_shared) !! ,
358
+ context.resources.getColor( R .color.primary, null )
359
359
)
360
360
sharedIconView.setImageDrawable(shareIcon)
361
361
sharedIconView.contentDescription = context.getString(R .string.shared_icon_shared)
362
362
// Added Code For Message Text
363
363
sharedMessageView?.text = context.resources.getString(R .string.placeholder_sharedMessage)
364
- sharedMessageView?.let {
365
- viewThemeUtils.platform.colorTextView(it)
366
- }
364
+ sharedMessageView?.setTextColor(context.resources.getColor(R .color.primary, null ))
367
365
}
368
366
file.isSharedViaLink -> {
369
- val shareIcon = viewThemeUtils.platform.tintDrawable (
370
- context,
371
- AppCompatResources .getDrawable(context, R .drawable.ic_shared) !!
367
+ val shareIcon = viewThemeUtils.platform.colorDrawable (
368
+ AppCompatResources .getDrawable( context, R .drawable.ic_shared) !! ,
369
+ context.resources.getColor( R .color.primary, null )
372
370
)
373
371
sharedIconView.setImageDrawable(shareIcon)
374
372
sharedIconView.contentDescription = context.getString(R .string.shared_icon_shared_via_link)
375
373
// Added Code For Message Text
376
374
sharedMessageView?.text = context.resources.getString(R .string.placeholder_sharedMessage)
377
- sharedMessageView?.let {
378
- viewThemeUtils.platform.colorTextView(it)
379
- }
375
+ sharedMessageView?.setTextColor(context.resources.getColor(R .color.primary, null ))
380
376
}
381
377
file.isEncrypted -> {
382
378
sharedIconView.visibility = View .GONE
0 commit comments