@@ -135,6+135,9 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
// `orbotStatus` is public static so it can be accessed from `OrbotProxyHelper`. It is also used in `onCreate()`.
public static String orbotStatus;
// `orbotStatus` is public static so it can be accessed from `OrbotProxyHelper`. It is also used in `onCreate()`.
public static String orbotStatus;
+ // `webViewTitle` is public static so it can be accessed from `CreateBookmarkDialog` and `CreateHomeScreenShortcutDialog`. It is also used in `onCreate()`.
+ public static String webViewTitle;
+
// `navigatingHistory` is used in `onCreate()` and `onNavigationItemSelected()`.
private boolean navigatingHistory;
// `navigatingHistory` is used in `onCreate()` and `onNavigationItemSelected()`.
private boolean navigatingHistory;
@@ -679,7+682,7 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
// Set the favorite icon when it changes.
@Override
public void onReceivedIcon(WebView view, Bitmap icon) {
// Set the favorite icon when it changes.
@Override
public void onReceivedIcon(WebView view, Bitmap icon) {
- // Save a copy of the favorite icon for use if a shortcut is added to the home screen.
+ // Save a copy of the favorite icon.
favoriteIcon = icon;
// Place the favorite icon in the appBar.
favoriteIcon = icon;
// Place the favorite icon in the appBar.
@@ -687,6+690,13 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation