Skip to content

Commit

Permalink
Fix error in back to New Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
haanhvu committed Nov 28, 2024
1 parent 38e4c11 commit b1eeaf2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ private void updateUI() {

if (mViewModel.getBackToNewTabEnabled().getValue().get()) {
mAttachedWindow.showNewTab();
mViewModel.setIsNewTabVisible(true);
mViewModel.enableBackToNewTab(false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ private void showPanel(Windows.ContentType contentType, boolean switchSurface) {

public void showNewTab() {
if (mNewTab != null) {
hidePanel();
setView(mNewTab, true);
mViewModel.setIsFindInPage(false);
mViewModel.setIsNewTabVisible(true);
Expand Down

0 comments on commit b1eeaf2

Please sign in to comment.