From d3ead42f8eb7da92e30563909dc6c36b0240f62f Mon Sep 17 00:00:00 2001 From: Anthony Restaino Date: Fri, 12 Feb 2016 21:51:56 -0500 Subject: [PATCH] fix rotation bug --- .../acr/browser/lightning/activity/BrowserActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java index c779fd3..e304c61 100644 --- a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java +++ b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java @@ -1039,6 +1039,12 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements mToolbar.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, toolbarSize)); mToolbar.setMinimumHeight(toolbarSize); mToolbar.requestLayout(); + + if (mCurrentView != null && mFullScreen) { + showActionBar(); + mCurrentView.setTranslationY(toolbarSize); + mToolbarLayout.setTranslationY(0); + } } public void closeBrowser() {