Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
haanhvu committed Nov 23, 2024
1 parent e0c5357 commit 3a03026
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ private void updateUI() {

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

if (getSession().canGoBack()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ public void showNewTab() {
setView(mNewTab, true);
mViewModel.setIsFindInPage(false);
mViewModel.setIsNewTabVisible(true);
mViewModel.enableBackToNewTab(false);
onFirstContentfulPaint(mSession.getWSession());
if (mRestoreFirstPaint == null && !isFirstPaintReady() && (mFirstDrawCallback != null) && (mSurface != null)) {
final Runnable firstDrawCallback = mFirstDrawCallback;
Expand Down Expand Up @@ -588,7 +589,6 @@ private void hidePanel(boolean switchSurface) {
}
if (mViewModel.getBackToNewTabEnabled().getValue().get()) {
showNewTab();
mViewModel.enableBackToNewTab(false);
}
}

Expand Down

0 comments on commit 3a03026

Please sign in to comment.