We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21340eb commit 99f4ca9Copy full SHA for 99f4ca9
1 file changed
expandabletextview/src/main/java/at/blogc/android/views/ExpandableTextView.java
@@ -108,12 +108,9 @@ public int getMaxLines()
108
*/
109
public boolean toggle()
110
{
111
- if (this.expanded)
112
- {
113
- return this.collapse();
114
- }
115
-
116
- return this.expand();
+ return this.expanded
+ ? this.collapse()
+ : this.expand();
117
}
118
119
/**
0 commit comments