mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-30 12:57:12 +01:00
Disable padding in CommentIndentationView if the comment level is 0.
This commit is contained in:
parent
3c4452261d
commit
fceb1f4585
@ -80,8 +80,12 @@ public class CommentIndentationView extends LinearLayout {
|
||||
public void setLevelAndColors(int level, Integer[] colors) {
|
||||
this.colors = colors;
|
||||
this.level = level;
|
||||
int indentationSpacing = (level * spacing + pathWidth);
|
||||
setPaddingRelative(indentationSpacing, 0, pathWidth, 0);
|
||||
if (level > 0) {
|
||||
int indentationSpacing = level * spacing + pathWidth;
|
||||
setPaddingRelative(indentationSpacing, 0, pathWidth, 0);
|
||||
} else {
|
||||
setPaddingRelative(0, 0, 0, 0);
|
||||
}
|
||||
invalidate();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user