From 35061253f5af587da87b255e8564d7879e5f39ee Mon Sep 17 00:00:00 2001 From: stefan-niedermann Date: Thu, 3 Oct 2019 16:35:47 +0200 Subject: [PATCH] Append version to UncaughtExceptionHandler --- .../owncloud/notes/android/activity/ExceptionActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/activity/ExceptionActivity.java b/app/src/main/java/it/niedermann/owncloud/notes/android/activity/ExceptionActivity.java index 1f1c862a..1f41b724 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/android/activity/ExceptionActivity.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/android/activity/ExceptionActivity.java @@ -16,6 +16,7 @@ import java.util.Objects; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; +import it.niedermann.owncloud.notes.BuildConfig; import it.niedermann.owncloud.notes.R; public class ExceptionActivity extends AppCompatActivity { @@ -38,7 +39,7 @@ public class ExceptionActivity extends AppCompatActivity { throwable.printStackTrace(); Objects.requireNonNull(getSupportActionBar()).setTitle(getString(R.string.simple_error)); this.message.setText(throwable.getMessage()); - this.stacktrace.setText(getStacktraceOf(throwable)); + this.stacktrace.setText("Version: " + BuildConfig.VERSION_NAME + "\n\n" + getStacktraceOf(throwable)); } private String getStacktraceOf(Throwable e) {