|
|
|
@ -23,6 +23,7 @@ import android.support.annotation.DrawableRes; |
|
|
|
|
import android.support.annotation.NonNull; |
|
|
|
|
import android.support.annotation.Nullable; |
|
|
|
|
import android.support.v4.content.ContextCompat; |
|
|
|
|
import android.support.v7.content.res.AppCompatResources; |
|
|
|
|
import android.support.v7.widget.RecyclerView; |
|
|
|
|
import android.text.Spanned; |
|
|
|
|
import android.view.View; |
|
|
|
@ -344,7 +345,7 @@ public class StatusViewHolder extends RecyclerView.ViewHolder { |
|
|
|
|
|
|
|
|
|
// Set the icon next to the label.
|
|
|
|
|
int drawableId = getLabelIcon(attachments[0].type); |
|
|
|
|
Drawable drawable = ContextCompat.getDrawable(context, drawableId); |
|
|
|
|
Drawable drawable = AppCompatResources.getDrawable(context, drawableId); |
|
|
|
|
ThemeUtils.setDrawableTint(context, drawable, android.R.attr.textColorTertiary); |
|
|
|
|
mediaLabel.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null, null); |
|
|
|
|
|
|
|
|
|