Skip to content

Commit

Permalink
M2-7184: Fixed consent checkboxes not working on android 13 (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmkhitaryanscn authored and Artem Mironov committed Jul 17, 2024
1 parent cbf09c3 commit e797b0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/entities/applet/lib/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ export function onFlowActivityContainsAllItemsHidden(entityName: string) {
Alert.alert('', i18n.t('activity:flow_all_items_hidden', { entityName }));
}
export function onDataSharingConsentDetails() {
Alert.alert(i18n.t('data_sharing:dialog:body'));
Alert.alert('', i18n.t('data_sharing:dialog:body'));
}
7 changes: 5 additions & 2 deletions src/entities/applet/ui/ConsentCheckBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ function ConsentCheckBox({ value, label, onChange, ...boxProps }: Props) {
const changeValue = () => onChange(!value);

return (
<XStack {...boxProps} onPress={changeValue}>
<XStack {...boxProps} onPress={changeValue} hitSlop={4}>
<CheckBox
value={value}
lineWidth={2}
animationDuration={0.1}
boxType="square"
onCheckColor="black"
onTintColor="black"
tintColor="black"
style={styles.checkbox}
disabled
onAnimationType="fade"
offAnimationType="fade"
value={value}
/>

{label}
Expand Down

0 comments on commit e797b0e

Please sign in to comment.