Skip to content

Commit

Permalink
fix: max accounts dialog prevent dismiss (WPB-4818) (#2260)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Sep 22, 2023
1 parent df8a028 commit b4f76b7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.wire.android.ui.common.WireDialog
import com.wire.android.ui.common.WireDialogButtonProperties
import com.wire.android.ui.common.WireDialogButtonType
import com.wire.android.ui.common.visbility.VisibilityState
import com.wire.android.ui.common.wireDialogPropertiesBuilder

// todo: parametrize the dialog with the number of accounts using BuildConfig
@Composable
Expand All @@ -44,6 +45,10 @@ fun MaxAccountsReachedDialogContent(
text = stringResource(R.string.label_ok),
onClick = onActionButtonClicked,
type = WireDialogButtonType.Primary
),
properties = wireDialogPropertiesBuilder(
dismissOnBackPress = false,
dismissOnClickOutside = false
)
)
}
Expand Down

0 comments on commit b4f76b7

Please sign in to comment.