Skip to content

Commit cf638d1

Browse files
committed
Fixed lint.
1 parent e3be15e commit cf638d1

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

app/src/main/kotlin/org/wordpress/aztec/demo/MainActivity.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ import org.wordpress.aztec.plugins.wpcomments.toolbar.PageToolbarButton
5959
import org.wordpress.aztec.source.SourceViewEditText
6060
import org.wordpress.aztec.toolbar.AztecToolbar
6161
import org.wordpress.aztec.toolbar.IAztecToolbarClickListener
62-
import org.wordpress.aztec.toolbar.ToolbarAction
63-
import org.wordpress.aztec.toolbar.ToolbarItems
6462
import org.wordpress.aztec.util.AztecLog
6563
import org.xml.sax.Attributes
6664
import java.io.File

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
447447
styles.getDimensionPixelSize(R.styleable.AztecText_bulletWidth, 0),
448448
verticalParagraphPadding)
449449

450-
listItemStyle = BlockFormatter.ListItemStyle(
450+
listItemStyle = BlockFormatter.ListItemStyle(
451451
styles.getBoolean(R.styleable.AztecText_taskListStrikethroughChecked, false),
452452
styles.getColor(R.styleable.AztecText_taskListCheckedTextColor, 0))
453453

aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecListItemSpan.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ import java.lang.StringBuilder
1212
fun createListItemSpan(nestingLevel: Int,
1313
alignmentRendering: AlignmentRendering,
1414
attributes: AztecAttributes = AztecAttributes(),
15-
listItemStyle: BlockFormatter.ListItemStyle = BlockFormatter.ListItemStyle(
16-
false, 0)): IAztecBlockSpan =
17-
when (alignmentRendering) {
18-
AlignmentRendering.SPAN_LEVEL -> AztecListItemSpanAligned(nestingLevel, attributes, null, listItemStyle)
19-
AlignmentRendering.VIEW_LEVEL -> AztecListItemSpan(nestingLevel, attributes, listItemStyle)
20-
}
15+
listItemStyle: BlockFormatter.ListItemStyle = BlockFormatter.ListItemStyle(false, 0)): IAztecBlockSpan = when (alignmentRendering) {
16+
AlignmentRendering.SPAN_LEVEL -> AztecListItemSpanAligned(nestingLevel, attributes, null, listItemStyle)
17+
AlignmentRendering.VIEW_LEVEL -> AztecListItemSpan(nestingLevel, attributes, listItemStyle)
18+
}
2119

2220
/**
2321
* We need to have two classes for handling alignment at either the Span-level (ListItemSpanAligned)

0 commit comments

Comments
 (0)