Skip to content

Commit

Permalink
fix(android): hide default separator when separatorStyle is SEPARATOR…
Browse files Browse the repository at this point in the history
…_STYLE_NONE
  • Loading branch information
drauggres committed Feb 8, 2022
1 parent 742ee91 commit 27ab328
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ private void processProperty(String name, Object value)
? TiConvert.toTiDimension(heightString, TiDimension.TYPE_HEIGHT)
.getAsPixels((View) getNativeView().getParent()) : 0;

if (name.equals(TiC.PROPERTY_SEPARATOR_COLOR)
if (height == 0) {
this.listView.setSeparator(0, height);
} else if (name.equals(TiC.PROPERTY_SEPARATOR_COLOR)
|| properties.containsKey(TiC.PROPERTY_SEPARATOR_COLOR)) {
String colorString = properties.getString(TiC.PROPERTY_SEPARATOR_COLOR);
if (name.equals(TiC.PROPERTY_SEPARATOR_COLOR)) {
Expand Down

0 comments on commit 27ab328

Please sign in to comment.