mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-24 13:56:14 +03:00
Append version to UncaughtExceptionHandler
This commit is contained in:
parent
3f32594d9d
commit
35061253f5
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue