add uploaded feedback

This commit is contained in:
Kr328 committed 2020-04-23 19:15:16 +08:00
1 parent c104942b5f
commit e6495f5e1f
3 files changed
+5

No files matched your search

@@ -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()
}
}
}
+1
View File
@@ -134,4 +134,5 @@
<string name="upload_logcat">上传日志</string>
<string name="upload_logcat_summary">上传日志以帮助我们侦测问题</string>
<string name="upload_logcat_warn">请注意, 上传的日志可能包含个人敏感信息, 仍要继续吗?</string>
<string name="uploaded">已上传</string>
</resources>
+1
View File
@@ -177,4 +177,5 @@
<string name="upload_logcat">Upload Logcat</string>
<string name="upload_logcat_summary">Upload logcat to help us detect issues</string>
<string name="upload_logcat_warn">Please note that the uploaded logs may contain personally sensitive information, do you still want to continue?</string>
<string name="uploaded">Uploaded</string>
</resources>