Add some note to bug reports for SchildiChat

Change-Id: I2e0360ba041e06bdccfe069b0ea0d62f33afe42f
This commit is contained in:
SpiritCroc 2021-08-18 12:33:37 +02:00
parent e2bf0a927d
commit f2f15ed7e4
3 changed files with 21 additions and 4 deletions

View file

@ -71,14 +71,14 @@ class BugReportActivity : VectorBaseActivity<ActivityBugReportBinding>() {
when (reportType) {
ReportType.BUG_REPORT -> {
supportActionBar?.setTitle(R.string.title_activity_bug_report)
views.bugReportButtonContactMe.isVisible = true
//views.bugReportButtonContactMe.isVisible = true
}
ReportType.SUGGESTION -> {
supportActionBar?.setTitle(R.string.send_suggestion)
views.bugReportFirstText.setText(R.string.send_suggestion_content)
views.bugReportTextInputLayout.hint = getString(R.string.send_suggestion_report_placeholder)
views.bugReportButtonContactMe.isVisible = true
//views.bugReportButtonContactMe.isVisible = true
hideBugReportOptions()
}
@ -87,7 +87,7 @@ class BugReportActivity : VectorBaseActivity<ActivityBugReportBinding>() {
views.bugReportFirstText.setText(R.string.send_feedback_space_info)
views.bugReportTextInputLayout.hint = getString(R.string.feedback)
views.bugReportButtonContactMe.isVisible = true
//views.bugReportButtonContactMe.isVisible = true
hideBugReportOptions()
}
@ -162,7 +162,7 @@ class BugReportActivity : VectorBaseActivity<ActivityBugReportBinding>() {
views.bugReportButtonIncludeScreenshot.isChecked,
views.bugReportEditText.text.toString(),
state.serverVersion,
views.bugReportButtonContactMe.isChecked,
false, //views.bugReportButtonContactMe.isChecked,
object : BugReporter.IMXBugReportListener {
override fun onUploadFailed(reason: String?) {
try {

View file

@ -101,6 +101,19 @@
android:text="@string/send_bug_report_description_in_english"
android:textColor="?vctr_content_secondary" />
<TextView
android:id="@+id/bug_report_sc_extra"
style="@style/Widget.Vector.TextView.Body"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:text="@string/send_bug_report_sc_extra"
android:linksClickable="true"
android:autoLink="web"
android:textColor="?vctr_content_primary" />
<TextView
android:id="@+id/bug_report_logs_description"
style="@style/Widget.Vector.TextView.Body"
@ -139,6 +152,7 @@
android:checked="false"
android:text="@string/send_bug_report_include_key_share_history" />
<!--
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/bug_report_button_contact_me"
android:layout_width="match_parent"
@ -147,6 +161,7 @@
android:layout_marginEnd="10dp"
android:checked="false"
android:text="@string/you_may_contact_me" />
-->
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/bug_report_button_include_screenshot"

View file

@ -112,4 +112,6 @@
<string name="sc_accent_blue">Blue</string>
<!-- do not change this comment for accent generation -->
<string name="send_bug_report_sc_extra">To increase the visibility of your issue and to allow us to contact you, you may want to reference this report (by providing your matrix ID and the approximate time when it was sent) in an issue at https://github.com/SchildiChat/SchildiChat-android/issues (check first if one already exists for your issue, and only create a new one if there is not).</string>
</resources>