diff --git a/app/src/main/java/com/sevtinge/hyperceiler/utils/DialogHelper.java b/app/src/main/java/com/sevtinge/hyperceiler/utils/DialogHelper.java index 41ee21ae20..21ddeaf5df 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/utils/DialogHelper.java +++ b/app/src/main/java/com/sevtinge/hyperceiler/utils/DialogHelper.java @@ -98,9 +98,14 @@ public static void showCrashMsgDialog(Context context, String throwClassName, St int throwLineNumber, String throwMethodName, String longMsg, String stackTrace) { new AlertDialog.Builder(context) .setCancelable(false) - .setTitle("异常记录") - .setMessage("抛错类: " + throwClassName + "\n抛错文件: " + throwFileName + "\n抛错方法: " + throwMethodName + - "\n抛错行: " + throwLineNumber + "\n异常信息: \n" + longMsg + "\n堆栈跟踪: \n" + stackTrace) + .setTitle(R.string.safe_mode_recorder_title) + .setMessage( + "[" + context.getString(R.string.safe_mode_recorder_file) + "]: " + throwFileName + + "\n[" + context.getString(R.string.safe_mode_recorder_class) + "]: " + throwClassName + + "\n[" + context.getString(R.string.safe_mode_recorder_method) + "]: " + throwMethodName + + "\n[" + context.getString(R.string.safe_mode_recorder_line) + "]: " + throwLineNumber + + "\n[" + context.getString(R.string.safe_mode_recorder_msg) + "]: " + longMsg + + "\n[" + context.getString(R.string.safe_mode_recorder_st) + "]: " + stackTrace) .setHapticFeedbackEnabled(true) .setPositiveButton(android.R.string.ok, (dialog, which) -> dialog.dismiss()) .show(); diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 8130ccc602..3bd44eea76 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -1696,6 +1696,13 @@ 稍后处理 提示 仍处于安全模式中,HyperCeiler对其的功能已停用。\n是否解除安全模式? + 异常记录 + 文件名 + 抛出类 + 抛出方法 + 行号 + 异常类型及信息 + 异常堆栈内容 Tip: 这里是默认 tip ~ 如果你能看见我,就说明 HyperCeiler 出现了问题,请及时且有效的反馈给开发者。 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f1c5d441b8..984451ae48 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1656,6 +1656,13 @@ Deal with it later Tip is still in safe mode and HyperCeiler functionality has been disabled. Disable safe mode? + Exception records + File + Class + Method + Line + Exception Message + Stack Trace Tip: Here is the default tip. If you can see me, it means that there is a problem with HyperCeiler, please report it to the developer in a timely and effective manner. Looking for something else?