Append version to UncaughtExceptionHandler

This commit is contained in:
stefan-niedermann 2019-10-03 16:35:47 +02:00
parent 3f32594d9d
commit 35061253f5

View file

@ -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) {