From: Soren Stoutner Date: Thu, 19 May 2016 04:32:42 +0000 (-0700) Subject: Fix drawer toggle icon problems on rotate. https://redmine.stoutner.com/issues/19 X-Git-Tag: v1.7~14 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=cdb15b51501bd5fe266c4a3cfc53443810015c6f;p=PrivacyBrowserAndroid.git Fix drawer toggle icon problems on rotate. https://redmine.stoutner.com/issues/19 --- 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); }