Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
fix animatable avatars not playing in notification headers
Browse files Browse the repository at this point in the history
closes #882
  • Loading branch information
sk22 committed Oct 22, 2023
1 parent 69c60d4 commit 128e75b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.res.ColorStateList;
import android.graphics.drawable.Animatable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.SpannableStringBuilder;
Expand Down Expand Up @@ -146,6 +147,8 @@ public void setImage(int index, Drawable image){
item.emojiHelper.setImageDrawable(index-1, image);
text.invalidate();
}
if(image instanceof Animatable)
((Animatable) image).start();
}

@Override
Expand Down

0 comments on commit 128e75b

Please sign in to comment.