Skip to content

Commit 47867a6

Browse files
Manuel Vivonickbutcher
Manuel Vivo
authored andcommittedDec 16, 2019
Addresses Ktlint issues
1 parent bce0d2a commit 47867a6

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed
 

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/JetnewsApp.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ private fun DrawerButton(
139139
colors.surface
140140
}
141141

142-
143142
Surface(
144143
modifier = modifier wraps Spacing(left = 8.dp, top = 8.dp, right = 8.dp),
145144
color = backgroundColor,
@@ -169,6 +168,6 @@ private fun DrawerButton(
169168
fun preview() {
170169
AppDrawer(
171170
currentScreen = JetnewsStatus.currentScreen,
172-
closeDrawer = { }
171+
closeDrawer = { }
173172
)
174173
}

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/Typography.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
package com.example.jetnews.ui
1818

1919
import androidx.ui.core.sp
20+
import androidx.ui.material.Typography
2021
import androidx.ui.text.TextStyle
2122
import androidx.ui.text.font.Font
2223
import androidx.ui.text.font.FontFamily
2324
import androidx.ui.text.font.FontWeight
24-
import androidx.ui.material.Typography
2525

2626
val regular = Font("montserrat_regular.ttf")
2727
val medium = Font("montserrat_medium.ttf", FontWeight.W500)

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/article/ArticleScreen.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ private fun sharePost(post: Post, context: Context) {
162162
@Composable
163163
fun previewArticle() {
164164
ArticleScreen(post3.id)
165-
}
165+
}

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/article/PostContent.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,8 @@ private fun Markup.toAnnotatedStringItem(): AnnotatedString.Item<TextStyle> {
282282
}
283283
}
284284

285-
286285
@Preview
287286
@Composable
288287
fun preview() {
289288
PostContent(post = post3)
290-
}
289+
}

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/home/HomeScreen.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ private fun HomeScreenDivider() {
131131
@Composable
132132
fun preview() {
133133
HomeScreen {}
134-
}
134+
}

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/interests/InterestsScreen.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,5 +198,5 @@ private fun selectTopic(key: String, select: Boolean) {
198198
@Preview
199199
@Composable
200200
fun preview() {
201-
InterestsScreen { }
202-
}
201+
InterestsScreen { }
202+
}

0 commit comments

Comments
 (0)
Please sign in to comment.