Skip to content

Commit 0a1bf3e

Browse files
authored
Merge pull request #276 from touchapp/fix/edit_profile_photo_click
fix: bug when the image change icon was not clickable
2 parents e303397 + 4107ccd commit 0a1bf3e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

profile/src/main/java/org/openedx/profile/presentation/edit/EditProfileFragment.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,13 @@ private fun EditProfileScreen(
650650
.size(32.dp)
651651
.clip(CircleShape)
652652
.background(MaterialTheme.appColors.primary)
653-
.padding(5.dp),
653+
.padding(5.dp)
654+
.clickable {
655+
isOpenChangeImageDialogState = true
656+
if (!uiState.account.isOlderThanMinAge()) {
657+
openWarningMessageDialog = true
658+
}
659+
},
654660
painter = painterResource(id = R.drawable.profile_ic_edit_image),
655661
contentDescription = null,
656662
tint = Color.White

0 commit comments

Comments
 (0)