/*
- * Copyright 2015-2017 Soren Stoutner <soren@stoutner.com>.
+ * Copyright © 2015-2017 Soren Stoutner <soren@stoutner.com>.
*
* Download cookie code contributed 2017 Hendrik Knackstedt. Copyright assigned to Soren Stoutner <soren@stoutner.com>.
*
}, 200);
return true;
- case R.id.refresh:
- mainWebView.reload();
- return true;
-
case R.id.print:
// Get a `PrintManager` instance.
PrintManager printManager = (PrintManager) getSystemService(Context.PRINT_SERVICE);
//Everything else will be handled by `CreateHomeScreenShortcutDialog` and the associated listener below.
return true;
+ case R.id.refresh:
+ mainWebView.reload();
+ return true;
+
default:
// Don't consume the event.
return super.onOptionsItemSelected(menuItem);
incognitoModeEnabled = sharedPreferences.getBoolean("incognito_mode", false);
boolean doNotTrackEnabled = sharedPreferences.getBoolean("do_not_track", false);
boolean proxyThroughOrbot = sharedPreferences.getBoolean("proxy_through_orbot", false);
- fullScreenBrowsingModeEnabled = sharedPreferences.getBoolean("enable_full_screen_browsing_mode", false);
+ fullScreenBrowsingModeEnabled = sharedPreferences.getBoolean("full_screen_browsing_mode", false);
hideSystemBarsOnFullscreen = sharedPreferences.getBoolean("hide_system_bars", false);
translucentNavigationBarOnFullscreen = sharedPreferences.getBoolean("translucent_navigation_bar", true);
swipeToRefreshEnabled = sharedPreferences.getBoolean("swipe_to_refresh", false);