diff --git a/app/src/main/java/com/nynja/mobile/communicator/mvp/presenters/ReportAProblemPresenter.kt b/app/src/main/java/com/nynja/mobile/communicator/mvp/presenters/ReportAProblemPresenter.kt index 1ce09b8b82fc8e0be2695db6fb1c6e6c1202ef4d..dcd6b221a71eee08b3e8e9ce52a8c2a4cf6a74fe 100644 --- a/app/src/main/java/com/nynja/mobile/communicator/mvp/presenters/ReportAProblemPresenter.kt +++ b/app/src/main/java/com/nynja/mobile/communicator/mvp/presenters/ReportAProblemPresenter.kt @@ -3,6 +3,7 @@ package com.nynja.mobile.communicator.mvp.presenters import android.os.Handler import com.arellomobile.mvp.InjectViewState import com.nynja.mobile.communicator.BuildConfig +import com.nynja.mobile.communicator.R import com.nynja.mobile.communicator.data.NynjaAwsManager import com.nynja.mobile.communicator.data.actions.CollectLatestLogFilesForReportAction import com.nynja.mobile.communicator.data.amazon.AwsTransfer @@ -17,6 +18,8 @@ import io.reactivex.disposables.Disposable import io.reactivex.schedulers.Schedulers import timber.log.Timber import java.io.File +import android.content.Context + @InjectViewState class ReportAProblemPresenter : BasePresenter() { @@ -26,16 +29,17 @@ class ReportAProblemPresenter : BasePresenter() { return arrayOf(Io::class.java) } - fun sendClick(description: String?) { + fun sendClick(description: String?, context: Context) { if (StringUtils.isNotEmpty(description)) { Timber.e("\n=====================================================================\r\n" + "### Problem Description: \n" + description + "\n" + Utils.getApplicationInfo() + "\n=====================================================================\r\n") + send() + }else { + DialogFactory.showAlert(context, R.string.report_a_problem_empty_description) } - - send() } private fun send() { diff --git a/app/src/main/java/com/nynja/mobile/communicator/ui/fragments/settings/ReportAProblemFragment.kt b/app/src/main/java/com/nynja/mobile/communicator/ui/fragments/settings/ReportAProblemFragment.kt index fd0580f2d91be3d036fb08a0585e6dad3a1718dd..c3e4aa125d08a2076201fe2d5af14e41db13c124 100644 --- a/app/src/main/java/com/nynja/mobile/communicator/ui/fragments/settings/ReportAProblemFragment.kt +++ b/app/src/main/java/com/nynja/mobile/communicator/ui/fragments/settings/ReportAProblemFragment.kt @@ -51,7 +51,7 @@ class ReportAProblemFragment : BaseFragment(), ReportAProblemView { @OnClick(R.id.f_report_a_problem_btn_send) fun onSaveButtonClick() { - mPresenter.sendClick(description.text.toString().trim()) + mPresenter.sendClick(description.text.toString().trim(), context) } override fun showInternetError() { diff --git a/app/src/main/res/values-en/strings.xml b/app/src/main/res/values-en/strings.xml index 8da13b5fc27f8f228536bb445248183e6648ad26..17cd972ecb4d01eda14df2f7d27329ee5e5730bb 100644 --- a/app/src/main/res/values-en/strings.xml +++ b/app/src/main/res/values-en/strings.xml @@ -1224,6 +1224,7 @@ Description* Ask Nynja a question Email Support + The description is empty.\nPlease provide a description for the problem. This conference has not been started yet. Please wait for the conference to be started.\nYou can return to home screen and you will be notified when the conference starts diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index cc31e962dc3c4e076481e5f05c6550eed4eb8247..da436efc6d8790170a0a9bb6a70697dcd9fd3585 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -1219,6 +1219,7 @@ Description* Ask Nynja a question Email Support + The description is empty.\nPlease provide a description for the problem. This conference has not been started yet. Please wait for the conference to be started.\nYou can return to home screen and you will be notified when the conference starts diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index 58547c814f7c170b6611b4ec5f369f9891531fa7..3c77b53ff4cda85ef29b0358d62fe627d26c0a58 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -1219,6 +1219,7 @@ Description* Ask Nynja a question Email Support + The description is empty. Please provide a description for the problem. This conference has not been started yet. Please wait for the conference to be started.\nYou can return to home screen and you will be notified when the conference starts diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index c2bf97f05a2cdd97cc977d489d94bdc06eace2fd..a27527030de04a857f5401f81634367ef315b20a 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -1219,6 +1219,8 @@ Description* 向NYNJA提问 电邮客服 + The description is empty. Please provide a description for the problem. + This conference has not been started yet. Please wait for the conference to be started.\nYou can return to home screen and you will be notified when the conference starts diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index c2bf97f05a2cdd97cc977d489d94bdc06eace2fd..fe406a5cd3de989a5255431d4a4bf52cd17601ba 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -1219,6 +1219,7 @@ Description* 向NYNJA提问 电邮客服 + The description is empty. Please provide a description for the problem. This conference has not been started yet. Please wait for the conference to be started.\nYou can return to home screen and you will be notified when the conference starts diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7930de99a5f9f0a7f523ba2359588673806499cb..5b7695d33038cf229bc08de9eebcf2f657cab950 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1231,6 +1231,7 @@ Description* Ask Nynja a question Email Support + The description is empty.\nPlease provide a description for the problem. This conference has not been started yet. Please wait for the conference to be started.\nYou can return to home screen and you will be notified when the conference starts