use generic cancel and continue strings.

This commit is contained in:
onurays 2020-04-23 17:44:30 +03:00
parent 54644db587
commit c3299845c1
2 changed files with 2 additions and 4 deletions

View File

@ -960,10 +960,10 @@ class RoomDetailFragment @Inject constructor(
.colorizeMatchingText(url, colorProvider.getColorFromAttribute(android.R.attr.textColorLink)) .colorizeMatchingText(url, colorProvider.getColorFromAttribute(android.R.attr.textColorLink))
.colorizeMatchingText(title, colorProvider.getColorFromAttribute(android.R.attr.textColorLink)) .colorizeMatchingText(title, colorProvider.getColorFromAttribute(android.R.attr.textColorLink))
) )
.setPositiveButton(R.string.external_link_confirmation_negative_button) { _, _ -> .setPositiveButton(R.string._continue) { _, _ ->
openUrlInExternalBrowser(requireContext(), url) openUrlInExternalBrowser(requireContext(), url)
} }
.setNegativeButton(R.string.external_link_confirmation_positive_button, null) .setNegativeButton(R.string.cancel, null)
.show() .show()
.withColoredButton(DialogInterface.BUTTON_NEGATIVE) .withColoredButton(DialogInterface.BUTTON_NEGATIVE)
} else { } else {

View File

@ -23,8 +23,6 @@
<!-- BEGIN Strings added by Onuray --> <!-- BEGIN Strings added by Onuray -->
<string name="external_link_confirmation_title">Double-check this link</string> <string name="external_link_confirmation_title">Double-check this link</string>
<string name="external_link_confirmation_message">The link %1$s is taking you to another site: %2$s.\n\nAre you sure you want to continue?</string> <string name="external_link_confirmation_message">The link %1$s is taking you to another site: %2$s.\n\nAre you sure you want to continue?</string>
<string name="external_link_confirmation_negative_button">Continue</string>
<string name="external_link_confirmation_positive_button">Cancel</string>
<!-- END Strings added by Onuray --> <!-- END Strings added by Onuray -->