Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Mar 12, 2022
1 parent e763939 commit d012a88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ internal fun File.transformXml(outputFile: File, minSdkVersion: Int, filters: Li
.joinToString(separator = "\n") {
"""
| <item android:drawable="@${outputFile.parentFile.normalizedName}/$it" />
|""".trimMargin()
|
""".trimMargin()
}
val versionSuffix = if (minSdkVersion >= ANDROID_OREO) "" else "-v26"
val v26DrawableRoot = drawableRoot.parentFile.resolve("${drawableRoot.normalizedName}-anydpi$versionSuffix")
Expand All @@ -64,7 +65,8 @@ internal fun File.transformXml(outputFile: File, minSdkVersion: Int, filters: Li
|
|$layers
|</layer-list>
|""".trimMargin(),
|
""".trimMargin(),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ internal class IconTransformerTest {
| <item android:drawable="@drawable/overlayfilter_3_output" />
|
|</layer-list>
|""".trimMargin(),
|
""".trimMargin(),
)
}

Expand Down Expand Up @@ -92,7 +93,8 @@ internal class IconTransformerTest {
| <item android:drawable="@drawable/overlayfilter_3_output" />
|
|</layer-list>
|""".trimMargin(),
|
""".trimMargin(),
)
}
}

0 comments on commit d012a88

Please sign in to comment.