// It is also used in `onCreate()` and `onCreateHomeScreenShortcutCreate()`.
public static Bitmap favoriteIcon;
- // `formattedUrlString` is public static so it can be accessed from `BookmarksActivity`.
+ // `formattedUrlString` is public static so it can be accessed from `BookmarksActivity`, `CreateBookmarkDialog`, and `AddDomainDialog`.
// It is also used in `onCreate()`, `onOptionsItemSelected()`, `onCreateHomeScreenShortcutCreate()`, and `loadUrlFromTextBox()`.
public static String formattedUrlString;
MenuItem toggleDomStorage = menu.findItem(R.id.toggleDomStorage);
MenuItem toggleSaveFormData = menu.findItem(R.id.toggleSaveFormData);
- // Only display third-Party Cookies if SDK >= 21
+ // Only display third-party cookies if SDK >= 21
toggleThirdPartyCookies.setVisible(Build.VERSION.SDK_INT >= 21);
// Get the shared preference values. `this` references the current context.
// Set the user agent initial status.
switch (userAgentString) {
- case "Default user agent":
+ case "WebView default user agent":
// Set the user agent to `""`, which uses the default value.
mainWebView.getSettings().setUserAgentString("");
break;