]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
Prepare to release 2.3.
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / activities / MainWebViewActivity.java
index 107a9cee6a83d538ff49b724f39f51f3da3b139a..873d11248fee48a9f574d4a89f6d5c5bf17e6f0b 100644 (file)
@@ -948,12 +948,11 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
         // Set the display webpage images mode.
         setDisplayWebpageImages();
 
-        // Only reload `mainWebView` if not loading a new intent.
-        if (!loadingNewIntentBoolean) {
+        // Only reload `mainWebView` if not loading a new intent and not waiting for Orbot.
+        if (!loadingNewIntentBoolean && !waitingForOrbot) {
             // Reload the webpage to remove images if `setDisplayWebpageImages` has turned them off.
             mainWebView.reload();
-        } else {
-            // Reset `loadingNewIntentBoolean`.
+        } else if (loadingNewIntentBoolean) {  // Reset `loadingNewIntentBoolean` if this run comes from a new intent.
             loadingNewIntentBoolean = false;
         }
     }