Skip to content

Commit

Permalink
Remove one setDocumentViewVisibility call, #1502
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantner committed Nov 20, 2021
1 parent 687ef52 commit d3e91a8
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,6 @@ public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
if (savedInstanceState != null && savedInstanceState.containsKey(SAVESTATE_PREVIEW_ON)) {
_isPreviewVisible = savedInstanceState.getBoolean(SAVESTATE_PREVIEW_ON, _isPreviewVisible);
}
if (_isPreviewVisible) {
setDocumentViewVisibility(true);
}

final Toolbar toolbar = getToolbar();
if (toolbar != null) {
Expand All @@ -227,12 +224,9 @@ public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
// Set the correct position after everything else done
if (!Arrays.asList(_hlEditor, _webView, _document.getFile()).contains(null)) {
if (isDisplayedAtMainActivity()) {

// Scroll to the bottom
_primaryScrollView.post(() -> _primaryScrollView.fullScroll(View.FOCUS_DOWN));

} else {

// Scroll to position
// If Intent contains line number, jump to it
// intentLineNumber only created with document reconstructed from intent
Expand Down

0 comments on commit d3e91a8

Please sign in to comment.