From cdb15b51501bd5fe266c4a3cfc53443810015c6f Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Wed, 18 May 2016 21:32:42 -0700 Subject: [PATCH] Fix drawer toggle icon problems on rotate. https://redmine.stoutner.com/issues/19 --- .../com/stoutner/privacybrowser/MainWebViewActivity.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java index 9e2d0496..3c442d1c 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java @@ -702,13 +702,10 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); - // Update the status of the drawerToggle icon. - drawerToggle.onConfigurationChanged(newConfig); - // Reload the ad if this is the free flavor. BannerAd.reloadAfterRotate(adView, getApplicationContext(), getString(R.string.ad_id)); - // Reinitialize the adView variable, as the View will have been removed and readded. + // Reinitialize the adView variable, as the View will have been removed and readded in the free flavor by BannerAd.reloadAfterRotate(). adView = findViewById(R.id.adView); } -- 2.45.2