diff --git a/app/src/main/java/net/gsantner/markor/activity/DocumentEditAndViewFragment.java b/app/src/main/java/net/gsantner/markor/activity/DocumentEditAndViewFragment.java index eeb711a66..8fab9ce72 100644 --- a/app/src/main/java/net/gsantner/markor/activity/DocumentEditAndViewFragment.java +++ b/app/src/main/java/net/gsantner/markor/activity/DocumentEditAndViewFragment.java @@ -155,6 +155,9 @@ public void onViewCreated(@NonNull View view, Bundle savedInstanceState) { return; } + _lineNumbersView.setup(_hlEditor, _primaryScrollView); + _lineNumbersView.setLineNumbersEnabled(_appSettings.getDocumentLineNumbersEnabled(_document.path)); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && _appSettings.getSetWebViewFulldrawing()) { WebView.enableSlowWholeDocumentDraw(); } @@ -255,9 +258,6 @@ public void onViewCreated(@NonNull View view, Bundle savedInstanceState) { } }); } - - _lineNumbersView.setup(_hlEditor, _primaryScrollView); - _lineNumbersView.setLineNumbersEnabled(_appSettings.getDocumentLineNumbersEnabled(_document.path)); } @Override