]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Fix drawer toggle icon problems on rotate. https://redmine.stoutner.com/issues/19
authorSoren Stoutner <soren@stoutner.com>
Thu, 19 May 2016 04:32:42 +0000 (21:32 -0700)
committerSoren Stoutner <soren@stoutner.com>
Thu, 19 May 2016 04:32:42 +0000 (21:32 -0700)
app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java

index 9e2d04966bea426ec9b6f00cce75ddb015cfb235..3c442d1c1052f1babd87d479e6a6c89db272459b 100644 (file)
@@ -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);
     }