forked from openedx/openedx-app-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Feedback Form button on the Settings Screen (#21)
Fixes: LEARNER-10132
- Loading branch information
1 parent
c041655
commit d21009c
Showing
8 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -365,6 +365,17 @@ private fun SupportInfoSection( | |
backgroundColor = MaterialTheme.appColors.cardViewBackground | ||
) { | ||
Column(Modifier.fillMaxWidth()) { | ||
if (uiState.configuration.feedbackFormUrl.isNotBlank()) { | ||
val uriHandler = LocalUriHandler.current | ||
SettingsItem( | ||
text = stringResource(id = R.string.core_help_us_improve), | ||
external = true, | ||
) { | ||
uriHandler.openUri(uiState.configuration.feedbackFormUrl) | ||
onAction(SettingsScreenAction.FeedbackFormClick) | ||
} | ||
SettingsDivider() | ||
} | ||
if (uiState.configuration.supportEmail.isNotBlank()) { | ||
SettingsItem(text = stringResource(id = R.string.core_contact_support)) { | ||
onAction(SettingsScreenAction.SupportClick) | ||
|
@@ -717,6 +728,7 @@ private val mockConfiguration = Configuration( | |
agreementUrls = AgreementUrls(), | ||
faqUrl = "https://example.com/faq", | ||
supportEmail = "[email protected]", | ||
feedbackFormUrl = "www.feedback.com", | ||
versionName = mockAppData.versionName, | ||
isIAPEnabled = true, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters