Add null checks to some AudioView functions.

This commit is contained in:
Greyson Parrelli 2024-11-04 09:54:24 -05:00
parent b441888c25
commit e54f101813

View file

@ -392,9 +392,15 @@ public final class AudioView extends FrameLayout {
if (this.duration != null) {
this.duration.setTextColor(foregroundTint);
}
if (this.seekBar.getProgressDrawable() != null) {
this.seekBar.getProgressDrawable().setColorFilter(foregroundTint, PorterDuff.Mode.SRC_IN);
}
if (this.seekBar.getThumb() != null) {
this.seekBar.getThumb().setColorFilter(foregroundTint, PorterDuff.Mode.SRC_IN);
}
}
public void getSeekBarGlobalVisibleRect(@NonNull Rect rect) {
seekBar.getGlobalVisibleRect(rect);