feat: also adjust clear all button to be delete / clear network depending on step

This commit is contained in:
jubb
2021-06-23 10:29:17 +10:00
parent 1df6fa46a4
commit 1ba12c40cc
2 changed files with 3 additions and 0 deletions

View File

@@ -78,10 +78,12 @@ class ClearAllDataDialog : DialogFragment() {
Steps.INFO_PROMPT -> {
view.dialogDescriptionText.setText(R.string.dialog_clear_all_data_explanation)
view.cancelButton.setText(R.string.cancel)
view.clearAllDataButton.setText(R.string.delete)
}
else -> {
view.dialogDescriptionText.setText(R.string.dialog_clear_all_data_network_explanation)
view.cancelButton.setText(R.string.dialog_clear_all_data_local_only)
view.clearAllDataButton.setText(R.string.dialog_clear_all_data_clear_network)
}
}