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. // Show the top app bar on top level destinations.
val destination = appState.currentTopLevelDestination val destination = appState.currentTopLevelDestination
if (destination != null) { if (destination != null) {
@Suppress("ktlint:standard:max-line-length")
NiaTopAppBar( NiaTopAppBar(
titleRes = destination.titleTextId, titleRes = destination.titleTextId,
navigationIcon = NiaIcons.Search, navigationIcon = NiaIcons.Search,

@ -33,6 +33,8 @@ import kotlin.math.abs
* @return a [Float] in the range [firstItemPosition..nextItemPosition) where nextItemPosition * @return a [Float] in the range [firstItemPosition..nextItemPosition) where nextItemPosition
* is the index of the consecutive item along the major axis. * 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( internal inline fun <LazyState : ScrollableState, LazyStateItem> LazyState.interpolateFirstItemIndex(
visibleItems: List<LazyStateItem>, visibleItems: List<LazyStateItem>,
crossinline itemSize: LazyState.(LazyStateItem) -> Int, crossinline itemSize: LazyState.(LazyStateItem) -> Int,

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

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

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

Loading…
Cancel
Save