Skip to content
Browse files

Added some space and removed setVisibility(View.VISIBLE), as the desc…

…ription is visible by default.
  • Loading branch information...
1 parent 7ecaf00 commit 4dd7d1905088fe5a2dd76bf0406b122003628fdc @roughike committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 swipe-selector/src/main/java/com/roughike/swipeselector/SwipeAdapter.java
View
2 swipe-selector/src/main/java/com/roughike/swipeselector/SwipeAdapter.java
@@ -318,10 +318,10 @@ public Object instantiateItem(ViewGroup container, int position) {
SwipeItem slideItem = mItems.get(position);
title.setText(slideItem.title);
+
if (slideItem.description == null) {
description.setVisibility(View.GONE);
} else {
- description.setVisibility(View.VISIBLE);
description.setText(slideItem.description);
}

0 comments on commit 4dd7d19

Please sign in to comment.
Something went wrong with that request. Please try again.