Skip to content

Commit 673749c

Browse files
committed
[Issue-27] - Code formatting
1 parent 84d56f6 commit 673749c

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

app/src/main/res/values/themes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
<item name="android:statusBarColor">@color/black</item>
1414
<!-- Customize your theme here. -->
1515
</style>
16-
</resources>
16+
</resources>

core-ui/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ android {
1414
dependencies {
1515
Dependencies.Kotlin.list.forEach { implementation(it) }
1616
Dependencies.Compose.list.forEach { implementation(it) }
17-
implementation("androidx.compose.ui:ui-tooling-preview:1.4.3")
18-
debugImplementation("androidx.compose.ui:ui-tooling:1.4.3")
17+
implementation(platform(Dependencies.Compose.composeBomVersion))
1918
}
2019

core-ui/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile

core-ui/src/main/AndroidManifest.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

core-ui/src/main/java/com/codandotv/streamplayerapp/core_ui/theme/ComposePreview.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ fun ThemePreview(
2424
StreamPlayerTheme {
2525
Surface { content() }
2626
}
27-
2827
}

core-ui/src/main/java/com/codandotv/streamplayerapp/core_ui/theme/StreamPlayerTheme.kt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ fun StreamPlayerTheme(
1212
) {
1313

1414
MaterialTheme(
15-
colorScheme = getColors(isDarkTheme),
15+
colorScheme = getColorScheme(isDarkTheme),
1616
content = content
1717
)
1818
}
1919

20-
private fun getColors(isDarkTheme: Boolean) = when (isDarkTheme) {
21-
false -> Colors.LightColors
22-
else -> Colors.DarkColors
23-
}
20+
private fun getColorScheme(isDarkTheme: Boolean) =
21+
if (isDarkTheme) {
22+
Colors.LightColors
23+
} else {
24+
Colors.DarkColors
25+
}
26+
27+
28+

0 commit comments

Comments
 (0)