Skip to content

Commit

Permalink
Try to fix error in new tab - web page - library backing loop again
Browse files Browse the repository at this point in the history
  • Loading branch information
haanhvu committed Dec 1, 2024
1 parent c3d47c2 commit 3ce39b7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ private void hidePanel(boolean switchSurface) {
} else {
mViewModel.setCurrentContentType(Windows.ContentType.WEB_CONTENT);
}
mViewModel.enableBackToNewTab(false);
}

public void hideNewTab() {
Expand Down Expand Up @@ -2072,13 +2073,13 @@ WResult<WAllowOrDeny> onLoadRequest(WSession aSession, @NonNull LoadRequest aReq
showNewTab();

} else {
hideNewTab();
hideLibraryPanel();
hideNewTab();
}

} else {
hideNewTab();
hideLibraryPanel();
hideNewTab();
mViewModel.setCurrentContentType(Windows.ContentType.WEB_CONTENT);
mViewModel.setUrl(uri.toString());
}
Expand Down

0 comments on commit 3ce39b7

Please sign in to comment.