Fix missing links for new deprecated warnings

This commit is contained in:
世界
2025-02-20 22:30:22 +08:00
parent 3a2fc9c880
commit d9e26516c7

View File

@@ -138,9 +138,11 @@ class DashboardFragment : Fragment(R.layout.fragment_dashboard) {
builder.setPositiveButton(R.string.ok) { _, _ ->
loopShowDeprecatedNotes(notes)
}
builder.setNeutralButton(R.string.service_error_deprecated_warning_documentation) { _, _ ->
requireContext().launchCustomTab(note.migrationLink)
loopShowDeprecatedNotes(notes)
if (!note.migrationLink.isNullOrBlank()) {
builder.setNeutralButton(R.string.service_error_deprecated_warning_documentation) { _, _ ->
requireContext().launchCustomTab(note.migrationLink)
loopShowDeprecatedNotes(notes)
}
}
builder.show()
}