Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35061253 authored by stefan-niedermann's avatar stefan-niedermann
Browse files

Append version to UncaughtExceptionHandler

parent 3f32594d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {