From 0d381e8a24408199267396b13c34cd95b1b73429 Mon Sep 17 00:00:00 2001 From: Li Guanglin Date: Sun, 10 Nov 2024 21:00:20 +0800 Subject: [PATCH] minor improvements --- .../markor/activity/DocumentEditAndViewFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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