Small improvement

This commit is contained in:
M66B
2024-02-11 08:23:02 +01:00
parent 19af331516
commit 7f34ddb583

View File

@@ -1843,9 +1843,12 @@ public class Log {
final Context context = getContext();
LayoutInflater inflater = LayoutInflater.from(context);
View dview = inflater.inflate(R.layout.dialog_unexpected, null);
TextView tvCaption = dview.findViewById(R.id.tvCaption);
TextView tvError = dview.findViewById(R.id.tvError);
Button btnHelp = dview.findViewById(R.id.btnHelp);
tvCaption.setText(report ? R.string.title_unexpected_error : R.string.title_setup_error);
String message = Log.formatThrowable(ex, false);
tvError.setText(message);