@@ -353,30 +353,26 @@ class OCFileListDelegate(
353353 sharedMessageView?.setTextColor(sharedWithMeColor)
354354 }
355355 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 )
359359 )
360360 sharedIconView.setImageDrawable(shareIcon)
361361 sharedIconView.contentDescription = context.getString(R .string.shared_icon_shared)
362362 // Added Code For Message Text
363363 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 ))
367365 }
368366 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 )
372370 )
373371 sharedIconView.setImageDrawable(shareIcon)
374372 sharedIconView.contentDescription = context.getString(R .string.shared_icon_shared_via_link)
375373 // Added Code For Message Text
376374 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 ))
380376 }
381377 file.isEncrypted -> {
382378 sharedIconView.visibility = View .GONE
0 commit comments