Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bentrengrove committed Jan 29, 2023
1 parent 154a7a6 commit 9e1e305
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adaptive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
defaultConfig {
minSdkVersion 21
// targetSdkVersion has no effect for libraries. This is only used for the test APK
targetSdkVersion 32
targetSdkVersion 33
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ open class LayoutTest {
size: Ref<IntSize>,
position: Ref<Offset>,
positionedLatch: CountDownLatch
): Modifier = onGloballyPositioned { coordinates ->
): Modifier = this then onGloballyPositioned { coordinates ->
size.value = IntSize(coordinates.size.width, coordinates.size.height)
position.value = coordinates.localToRoot(Offset(0f, 0f))
positionedLatch.countDown()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.google.accompanist.navigation.material

import android.annotation.SuppressLint
import androidx.compose.animation.core.AnimationSpec
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.material.ExperimentalMaterialApi
Expand Down Expand Up @@ -247,6 +248,7 @@ class BottomSheetNavigator(
content = {}
)

@SuppressLint("NewApi") // b/187418647
override fun navigate(
entries: List<NavBackStackEntry>,
navOptions: NavOptions?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.google.accompanist.navigation.material

import android.annotation.SuppressLint
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.runtime.Composable
import androidx.navigation.NamedNavArgument
Expand All @@ -32,6 +33,7 @@ import androidx.navigation.get
* @param deepLinks list of deep links to associate with the destinations
* @param content the sheet content at the given destination
*/
@SuppressLint("NewApi") // b/187418647
@ExperimentalMaterialNavigationApi
public fun NavGraphBuilder.bottomSheet(
route: String,
Expand Down

0 comments on commit 9e1e305

Please sign in to comment.