From e6495f5e1fea2db04ee86ff392c9a54b7797c312 Mon Sep 17 00:00:00 2001 From: Kr328 Date: Thu, 23 Apr 2020 19:15:16 +0800 Subject: [PATCH] add uploaded feedback --- app/src/main/java/com/github/kr328/clash/SupportActivity.kt | 3 +++ app/src/main/res/values-zh/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 3 files changed, 5 insertions(+) diff --git a/app/src/main/java/com/github/kr328/clash/SupportActivity.kt b/app/src/main/java/com/github/kr328/clash/SupportActivity.kt index 6adf03c..a5b3ceb 100644 --- a/app/src/main/java/com/github/kr328/clash/SupportActivity.kt +++ b/app/src/main/java/com/github/kr328/clash/SupportActivity.kt @@ -6,6 +6,7 @@ import android.os.Bundle import android.text.Html import androidx.appcompat.app.AlertDialog import com.github.kr328.clash.dump.LogcatDumper +import com.google.android.material.snackbar.Snackbar import com.microsoft.appcenter.crashes.Crashes import com.microsoft.appcenter.crashes.ingestion.models.ErrorAttachmentLog import kotlinx.android.synthetic.main.activity_support.* @@ -108,6 +109,8 @@ class SupportActivity : BaseActivity() { .attachmentWithText(LogcatDumper.dumpAll(), "logcat.txt") Crashes.trackError(UserRequestTrackException(), null, listOf(attachment)) + + Snackbar.make(rootView, R.string.uploaded, Snackbar.LENGTH_LONG).show() } } } diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index 734020b..97a927e 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -134,4 +134,5 @@ 上传日志 上传日志以帮助我们侦测问题 请注意, 上传的日志可能包含个人敏感信息, 仍要继续吗? + 已上传 \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c74a637..6f077ba 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -177,4 +177,5 @@ Upload Logcat Upload logcat to help us detect issues Please note that the uploaded logs may contain personally sensitive information, do you still want to continue? + Uploaded