Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 91e7d21

Browse files
committed
Fixes notification dialog showing too many times
Change-Id: Id6d0d972e5390f96b7f680bc260c65fd72350975
1 parent 22806d5 commit 91e7d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mobile/src/main/java/com/google/samples/apps/iosched/ui/signin/SignInViewModelDelegate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ internal class FirebaseSignInViewModelDelegate @Inject constructor(
152152
init {
153153
applicationScope.launch {
154154
userInfo.collect {
155-
if (notificationsPrefIsShownUseCase(Unit).data == true && isUserSignedInValue) {
155+
if (notificationsPrefIsShownUseCase(Unit).data == false && isUserSignedInValue) {
156156
_signInNavigationActions.tryOffer(ShowNotificationPreferencesDialog)
157157
}
158158
}

0 commit comments

Comments
 (0)