mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-01 16:55:18 +08:00
Added developer notice in MainActivity
This commit is contained in:
@@ -25,6 +25,8 @@ import com.highcapable.yukihookapi.hook.xposed.prefs.data.PrefsData
|
||||
|
||||
object DataConst {
|
||||
|
||||
val SHOW_DEVELOPER_NOTICE = PrefsData("_show_developer_notice", true)
|
||||
|
||||
val ENABLE_HIDE_ICON = PrefsData("_hide_icon", false)
|
||||
val ENABLE_ONLY_SHOW_ERRORS_IN_FRONT = PrefsData("_enable_only_show_errors_in_front", false)
|
||||
val ENABLE_ONLY_SHOW_ERRORS_IN_MAIN = PrefsData("_enable_only_show_errors_in_main", false)
|
||||
|
@@ -442,4 +442,16 @@ object LocaleString {
|
||||
|
||||
/** @string Automatic generated */
|
||||
fun areYouSureApplySiteApps(vararg objArrs: Any) = R.string.are_you_sure_apply_site_apps.bind(*objArrs)
|
||||
|
||||
/** @string Automatic generated */
|
||||
val developerNoticeTip get() = developerNoticeTip()
|
||||
|
||||
/** @string Automatic generated */
|
||||
fun developerNoticeTip(vararg objArrs: Any) = R.string.developer_notice_tip.bind(*objArrs)
|
||||
|
||||
/** @string Automatic generated */
|
||||
val developerNotice get() = developerNotice()
|
||||
|
||||
/** @string Automatic generated */
|
||||
fun developerNotice(vararg objArrs: Any) = R.string.developer_notice.bind(*objArrs)
|
||||
}
|
@@ -37,6 +37,7 @@ import com.fankes.apperrorstracking.ui.activity.errors.AppErrorsMutedActivity
|
||||
import com.fankes.apperrorstracking.ui.activity.errors.AppErrorsRecordActivity
|
||||
import com.fankes.apperrorstracking.utils.factory.navigate
|
||||
import com.fankes.apperrorstracking.utils.factory.openBrowser
|
||||
import com.fankes.apperrorstracking.utils.factory.showDialog
|
||||
import com.fankes.apperrorstracking.utils.factory.toast
|
||||
import com.fankes.apperrorstracking.utils.tool.FrameworkTool
|
||||
import com.highcapable.yukihookapi.YukiHookAPI
|
||||
@@ -95,6 +96,14 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
|
||||
binding.titleRestartIcon.setOnClickListener { FrameworkTool.restartSystem(context = this) }
|
||||
/** 项目地址按钮点击事件 */
|
||||
binding.titleGithubIcon.setOnClickListener { openBrowser(url = "https://github.com/KitsunePie/AppErrorsTracking") }
|
||||
/** 显示开发者提示 */
|
||||
if (modulePrefs.get(DataConst.SHOW_DEVELOPER_NOTICE))
|
||||
showDialog {
|
||||
title = LocaleString.developerNotice
|
||||
msg = LocaleString.developerNoticeTip
|
||||
confirmButton(LocaleString.gotIt) { modulePrefs.put(DataConst.SHOW_DEVELOPER_NOTICE, value = false) }
|
||||
noCancelable()
|
||||
}
|
||||
}
|
||||
|
||||
/** 刷新模块状态 */
|
||||
|
@@ -115,4 +115,6 @@
|
||||
<string name="are_you_sure_apply_site_apps">一度に %1$s 個のアプリに設定を適用してもよろしいですか</string>
|
||||
<string name="errors_dialog_always_show_reopen">エラーダイアログには常にリスタートが表示</string>
|
||||
<string name="errors_dialog_always_show_reopen_tip">有効にした後、アプリが最初のエラーでない場合にも「アプリをリスタート」オプションが表示されます。現在のエラーがメインプロセスでない場合、またはアプリを開くことができない場合でも、このオプションは表示されません。</string>
|
||||
<string name="developer_notice_tip">このモジュールはAndroid開発者向けに特別に作成されています。コンピューターに接続できず、ADBデバッグを実行できない可能性がある場合、このモジュールを使用して、インストールされているアプリのエラーをすばやくキャプチャし、問題をすばやく特定できます。デベロッパー。</string>
|
||||
<string name="developer_notice">使用説明書</string>
|
||||
</resources>
|
@@ -115,4 +115,6 @@
|
||||
<string name="are_you_sure_apply_site_apps">你确定要一次性应用设置给 %1$s 个应用吗?</string>
|
||||
<string name="errors_dialog_always_show_reopen">错误对话框始终显示“重新打开”选项</string>
|
||||
<string name="errors_dialog_always_show_reopen_tip">启用后,在应用非首次异常时也将显示“重新打开”选项,若当前异常非主进程或应用无法打开则依然不会显示此选项。</string>
|
||||
<string name="developer_notice_tip">此模块专为 Android 开发者而打造,在可能的无法连接电脑,不能进行 ADB 调试的时候,可通过此模块来快速捕获任意已安装应用的任意异常,以便给开发者快速定位问题。</string>
|
||||
<string name="developer_notice">使用说明</string>
|
||||
</resources>
|
@@ -115,4 +115,6 @@
|
||||
<string name="are_you_sure_apply_site_apps">你確認要一次性應用設置給 %1$s 個程式嗎?</string>
|
||||
<string name="errors_dialog_always_show_reopen">錯誤對話框始終顯示“重新開啟”選項</string>
|
||||
<string name="errors_dialog_always_show_reopen_tip">啟用後,在程式非首次異常時也將顯示“重新開啟”選項,若當前異常非主進程或程式無法打開則依然不會顯示此選項。</string>
|
||||
<string name="developer_notice">使用說明</string>
|
||||
<string name="developer_notice_tip">此模組專為 Android 開發者而打造,在可能的無法連接電腦,不能進行 ADB 調試的時候,可通過此模組來快速捕獲任意已安裝程式的任意異常,以便給開發者快速定位問題。</string>
|
||||
</resources>
|
@@ -115,4 +115,6 @@
|
||||
<string name="are_you_sure_apply_site_apps">你確認要一次性應用設置給 %1$s 個程式嗎?</string>
|
||||
<string name="errors_dialog_always_show_reopen">錯誤對話框始終顯示“重新開啟”選項</string>
|
||||
<string name="errors_dialog_always_show_reopen_tip">啟用後,在程式非首次異常時也將顯示“重新開啟”選項,若當前異常非主進程或程式無法打開則依然不會顯示此選項。</string>
|
||||
<string name="developer_notice">使用說明</string>
|
||||
<string name="developer_notice_tip">此模組專為 Android 開發者而打造,在可能的無法連接電腦,不能進行 ADB 調試的時候,可通過此模組來快速捕獲任意已安裝程式的任意異常,以便給開發者快速定位問題。</string>
|
||||
</resources>
|
@@ -115,4 +115,6 @@
|
||||
<string name="are_you_sure_apply_site_apps">你確認要一次性應用設置給 %1$s 個程式嗎?</string>
|
||||
<string name="errors_dialog_always_show_reopen">錯誤對話框始終顯示“重新開啟”選項</string>
|
||||
<string name="errors_dialog_always_show_reopen_tip">啟用後,在程式非首次異常時也將顯示“重新開啟”選項,若當前異常非主進程或程式無法打開則依然不會顯示此選項。</string>
|
||||
<string name="developer_notice">使用說明</string>
|
||||
<string name="developer_notice_tip">此模組專為 Android 開發者而打造,在可能的無法連接電腦,不能進行 ADB 調試的時候,可通過此模組來快速捕獲任意已安裝程式的任意異常,以便給開發者快速定位問題。</string>
|
||||
</resources>
|
@@ -115,4 +115,6 @@
|
||||
<string name="are_you_sure_apply_site_apps">Are you sure you want to apply settings to %1$s apps at once?</string>
|
||||
<string name="errors_dialog_always_show_reopen">Error dialog always shows \"Reopen App\"</string>
|
||||
<string name="errors_dialog_always_show_reopen_tip">After enabling, the \"Reopen App\" option will also be shows when the app is not errors for the first time. If the current errors is not the main process or the app cannot be opened, this option will still not be showing.</string>
|
||||
<string name="developer_notice_tip">This module is specially designed for Android developers. When it is possible that the computer cannot be connected and ADB cannot be performed, this module can be used to quickly capture any exception of any installed apps, so as to quickly locate the problem for the developer.</string>
|
||||
<string name="developer_notice">Instructions</string>
|
||||
</resources>
|
Reference in New Issue
Block a user