From df3d3b63c88d5df7316cb2dd30d8a9ad6af49b73 Mon Sep 17 00:00:00 2001 From: Valere Date: Wed, 12 May 2021 11:04:54 +0200 Subject: [PATCH] Code review --- .../app/features/rageshake/BugReportActivity.kt | 15 +++++---------- vector/src/main/res/values/strings.xml | 8 +++----- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/rageshake/BugReportActivity.kt b/vector/src/main/java/im/vector/app/features/rageshake/BugReportActivity.kt index 2b7c3db490..d6d80673b0 100755 --- a/vector/src/main/java/im/vector/app/features/rageshake/BugReportActivity.kt +++ b/vector/src/main/java/im/vector/app/features/rageshake/BugReportActivity.kt @@ -71,7 +71,7 @@ class BugReportActivity : VectorBaseActivity() { when (reportType) { ReportType.BUG_REPORT -> { supportActionBar?.setTitle(R.string.title_activity_bug_report) - views.bugReportButtonContactMe.isVisible = false + views.bugReportButtonContactMe.isVisible = true } ReportType.SUGGESTION -> { supportActionBar?.setTitle(R.string.send_suggestion) @@ -172,13 +172,10 @@ class BugReportActivity : VectorBaseActivity() { Toast.makeText(this@BugReportActivity, getString(R.string.send_bug_report_failed, reason), Toast.LENGTH_LONG).show() } - ReportType.SUGGESTION -> { - Toast.makeText(this@BugReportActivity, - getString(R.string.send_suggestion_failed, reason), Toast.LENGTH_LONG).show() - } + ReportType.SUGGESTION, ReportType.SPACE_BETA_FEEDBACK -> { Toast.makeText(this@BugReportActivity, - getString(R.string.space_feedback_failed, reason), Toast.LENGTH_LONG).show() + getString(R.string.feedback_failed, reason), Toast.LENGTH_LONG).show() } } } @@ -211,11 +208,9 @@ class BugReportActivity : VectorBaseActivity() { ReportType.BUG_REPORT -> { Toast.makeText(this@BugReportActivity, R.string.send_bug_report_sent, Toast.LENGTH_LONG).show() } - ReportType.SUGGESTION -> { - Toast.makeText(this@BugReportActivity, R.string.send_suggestion_sent, Toast.LENGTH_LONG).show() - } + ReportType.SUGGESTION, ReportType.SPACE_BETA_FEEDBACK -> { - Toast.makeText(this@BugReportActivity, R.string.space_feedback_sent, Toast.LENGTH_LONG).show() + Toast.makeText(this@BugReportActivity, R.string.feedback_sent, Toast.LENGTH_LONG).show() } } } catch (e: Exception) { diff --git a/vector/src/main/res/values/strings.xml b/vector/src/main/res/values/strings.xml index 6c46600f43..48e53419d9 100644 --- a/vector/src/main/res/values/strings.xml +++ b/vector/src/main/res/values/strings.xml @@ -2164,15 +2164,13 @@ Make a suggestion Please write your suggestion below. Describe your suggestion here - Thanks, the suggestion has been successfully sent - The suggestion failed to be sent (%s) Spaces feedback Feedback - You’re using a beta version of spaces. Your feedback will help inform the next versions. Your platform and username will be noted to help us use your feedback as much as we can. To leave the beta, visit your settings. + You’re using a beta version of spaces. Your feedback will help inform the next versions. Your platform and username will be noted to help us use your feedback as much as we can. You may contact me if you have any follow up questions - Thanks, your feedback has been successfully sent - The feedback failed to be sent (%s) + Thanks, your feedback has been successfully sent + The feedback failed to be sent (%s) Give Feedback Show hidden events in timeline