Fix possible npe
This commit is contained in:
parent
5a05693efb
commit
7cdb927bde
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue