Suppress "ktlint:standard:max-line-length"

Change-Id: I148afca4a4521021a0f881614e4e2e46b05f6e63
pull/1350/head
Jaehwa Noh 2 years ago
parent 038a9744cd
commit aa5f9770b0

@ -165,6 +165,7 @@ fun NiaApp(appState: NiaAppState) {
// Show the top app bar on top level destinations.
val destination = appState.currentTopLevelDestination
if (destination != null) {
@Suppress("ktlint:standard:max-line-length")
NiaTopAppBar(
titleRes = destination.titleTextId,
navigationIcon = NiaIcons.Search,

@ -33,6 +33,8 @@ import kotlin.math.abs
* @return a [Float] in the range [firstItemPosition..nextItemPosition) where nextItemPosition
* is the index of the consecutive item along the major axis.
* */
@Suppress("ktlint:standard:max-line-length")
internal inline fun <LazyState : ScrollableState, LazyStateItem> LazyState.interpolateFirstItemIndex(
visibleItems: List<LazyStateItem>,
crossinline itemSize: LazyState.(LazyStateItem) -> Int,

@ -63,7 +63,7 @@ internal class SystemTrayNotifier @Inject constructor(
val newsNotifications = truncatedNewsResources.map { newsResource ->
createNewsNotification {
@Suppress("ktlint:standard:max-line-length")
setSmallIcon(
com.google.samples.apps.nowinandroid.core.common.R.drawable.core_common_ic_nia_notification,
)
@ -79,6 +79,7 @@ internal class SystemTrayNotifier @Inject constructor(
R.string.core_notifications_news_notification_group_summary,
truncatedNewsResources.size,
)
@Suppress("ktlint:standard:max-line-length")
setContentTitle(title)
.setContentText(title)
.setSmallIcon(

@ -102,6 +102,7 @@ internal fun SearchRoute(
modifier: Modifier = Modifier,
searchViewModel: SearchViewModel = hiltViewModel(),
) {
@Suppress("ktlint:standard:max-line-length")
val recentSearchQueriesUiState by searchViewModel.recentSearchQueriesUiState.collectAsStateWithLifecycle()
val searchResultUiState by searchViewModel.searchResultUiState.collectAsStateWithLifecycle()
val searchQuery by searchViewModel.searchQuery.collectAsStateWithLifecycle()

@ -65,7 +65,7 @@ private fun Context.syncWorkNotification(): Notification {
notificationManager?.createNotificationChannel(channel)
}
@Suppress("ktlint:standard:max-line-length")
return NotificationCompat.Builder(
this,
SYNC_NOTIFICATION_CHANNEL_ID,

Loading…
Cancel
Save