Skip to content

Commit 00b6633

Browse files
authored
fix: app asking for notification permission on each navigation to the HomeScreen[WPB-10750] (#3374)
1 parent 0ad8177 commit 00b6633

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/kotlin/com/wire/android/ui/home/HomeScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ fun HomeScreen(
116116
rememberShowNotificationsPermissionFlow(
117117
onPermissionGranted = { /* do nothing */ },
118118
onPermissionDenied = showNotificationsPermissionDeniedDialog,
119-
onPermissionPermanentlyDenied = showNotificationsPermissionDeniedDialog,
119+
onPermissionPermanentlyDenied = { /* do nothing */ },
120120
)
121121

122122
val lifecycleOwner = LocalLifecycleOwner.current

app/src/main/kotlin/com/wire/android/util/permission/PermissionsDeniedRequestDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ import com.wire.android.util.extension.openAppInfoScreen
3636
*/
3737
@Composable
3838
fun PermissionsDeniedRequestDialog(
39-
@StringRes title: Int = R.string.app_permission_dialog_title,
4039
@StringRes body: Int,
40+
@StringRes title: Int = R.string.app_permission_dialog_title,
4141
@StringRes positiveButton: Int = R.string.app_permission_dialog_settings_positive_button,
4242
@StringRes negativeButton: Int = R.string.app_permission_dialog_settings_negative_button,
4343
onDismiss: () -> Unit

0 commit comments

Comments
 (0)