fix default emoji font icon not rendering

This commit is contained in:
Konrad Pozniak 2020-02-21 18:21:47 +01:00
commit 1eef035a9e
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ import android.util.Pair;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import com.keylesspalace.tusky.R;
@ -144,7 +145,7 @@ public class EmojiCompatFont {
}
public Drawable getThumb(Context context) {
return context.getResources().getDrawable(img);
return ContextCompat.getDrawable(context, img);
}
public String getVersion() {