Fix possible npe

This commit is contained in:
Vitaliy 2020-07-30 17:36:40 +03:00
parent 5a05693efb
commit 7cdb927bde

View file

@ -360,14 +360,14 @@ public class TrackAppearanceFragment extends ContextMenuScrollFragment implement
int strokeColor = UiUtilities.getColorWithAlpha(Color.BLACK, 0.7f);
Drawable strokeIcon = app.getUIUtilities().getPaintedIcon(strokeIconId, strokeColor);
Drawable arrows = null;
if (showArrows) {
int arrowsIconId = getArrowsIconId(widthAttr);
int contrastColor = UiUtilities.getContrastColor(app, color, false);
arrows = app.getUIUtilities().getPaintedIcon(arrowsIconId, contrastColor);
}
Drawable arrows = app.getUIUtilities().getPaintedIcon(arrowsIconId, contrastColor);
return UiUtilities.getLayeredIcon(widthIcon, strokeIcon, arrows);
}
return UiUtilities.getLayeredIcon(widthIcon, strokeIcon);
}
private void updateCardsLayout() {
View mainView = getMainView();