Skip to content

Commit a93cce9

Browse files
authored
Update ForYouScreenTest.kt
1 parent 69879ff commit a93cce9

File tree

1 file changed

+5
-2
lines changed
  • feature/foryou/src/androidTest/java/com/google/samples/apps/nowinandroid/feature/foryou

1 file changed

+5
-2
lines changed

feature/foryou/src/androidTest/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreenTest.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ class ForYouScreenTest {
4343

4444
@get:Rule
4545
val permissionTestRule: GrantPermissionRule =
46-
if (SDK_INT < TIRAMISU) grant()
47-
else grant(Manifest.permission.POST_NOTIFICATIONS)
46+
if (SDK_INT >= TIRAMISU) {
47+
grant(Manifest.permission.POST_NOTIFICATIONS)
48+
} else {
49+
grant()
50+
}
4851

4952
@get:Rule
5053
val composeTestRule = createAndroidComposeRule<ComponentActivity>()

0 commit comments

Comments
 (0)