Skip to content

Commit

Permalink
Merge pull request nextcloud#14315 from nextcloud/bugLink
Browse files Browse the repository at this point in the history
Error Reporting: use correct bug template
  • Loading branch information
tobiasKaminsky authored Jan 6, 2025
2 parents e2c0ef9 + 418238d commit 1a1ddc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import com.owncloud.android.R
import com.owncloud.android.databinding.ActivityShowErrorBinding
import com.owncloud.android.utils.ClipboardUtil
import com.owncloud.android.utils.DisplayUtils
import java.net.URLEncoder

class ShowErrorActivity : AppCompatActivity() {
private lateinit var binding: ActivityShowErrorBinding
Expand Down Expand Up @@ -51,10 +50,7 @@ class ShowErrorActivity : AppCompatActivity() {

private fun reportIssue() {
ClipboardUtil.copyToClipboard(this, binding.textViewError.text.toString(), false)
val issueLink = String.format(
getString(R.string.report_issue_link),
URLEncoder.encode(binding.textViewError.text.toString(), Charsets.UTF_8.name())
)
val issueLink = getString(R.string.report_issue_link)
DisplayUtils.startLinkIntent(this, issueLink)
Toast.makeText(this, R.string.copied_to_clipboard, Toast.LENGTH_LONG).show()
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<string name="translation_link" translatable="false">https://app.transifex.com/nextcloud/nextcloud/android/</string>
<string name="contributing_link" translatable="false">https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md</string>
<!-- For semi-automated bug report creation -->
<string name="report_issue_link" translatable="false">https://github.com/nextcloud/android/issues/new?labels=bug&amp;body=%1$s</string>
<string name="report_issue_link" translatable="false">https://github.com/nextcloud/android/issues/new?template=bug_report.yml</string>
<!-- For manual report from user -->
<string name="report_issue_empty_link" translatable="false">https://github.com/nextcloud/android/issues/new/choose</string>

Expand Down

0 comments on commit 1a1ddc2

Please sign in to comment.