diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-11-28 22:53:38 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-12-02 13:32:06 +0000 |
| commit | 8d639e8841d5970b1fb994bc80e85e35eaf0e1fc (patch) | |
| tree | 17792516c73a5a2a7f8d28dc94b9a7de140f15c0 /android/src | |
| parent | 7791a7898abc6f65209cb6386943d5dd5d7e3741 (diff) | |
| download | mullvadvpn-8d639e8841d5970b1fb994bc80e85e35eaf0e1fc.tar.xz mullvadvpn-8d639e8841d5970b1fb994bc80e85e35eaf0e1fc.zip | |
Open View Logs screen when button is pressed
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/ui/ProblemReportFragment.kt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/ProblemReportFragment.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/ProblemReportFragment.kt index 67786151f9..491f0d53fc 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/ProblemReportFragment.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/ProblemReportFragment.kt @@ -95,6 +95,10 @@ class ProblemReportFragment : Fragment() { editMessageButton = view.findViewById<Button>(R.id.edit_message_button) tryAgainButton = view.findViewById<Button>(R.id.try_again_button) + view.findViewById<Button>(R.id.view_logs).setOnClickListener { + showLogs() + } + sendButton.setOnClickListener { jobTracker.newUiJob("sendReport") { sendReport(true) @@ -139,6 +143,20 @@ class ProblemReportFragment : Fragment() { super.onDetach() } + private fun showLogs() { + fragmentManager?.beginTransaction()?.apply { + setCustomAnimations( + R.anim.fragment_enter_from_right, + R.anim.fragment_half_exit_to_left, + R.anim.fragment_half_enter_from_left, + R.anim.fragment_exit_to_right + ) + replace(R.id.main_fragment, ViewLogsFragment()) + addToBackStack(null) + commit() + } + } + private suspend fun sendReport(shouldConfirmNoEmail: Boolean) { val userEmail = userEmailInput.text.trim().toString() |
