+ case "swipe_to_refresh_enabled":
+ // Set swipeToRefreshEnabled to the new state. The default is true.
+ MainWebViewActivity.swipeToRefreshEnabled = sharedPreferences.getBoolean("swipe_to_refresh_enabled", true);
+
+ // Update swipeRefreshLayout to match the new state.
+ MainWebViewActivity.swipeToRefresh.setEnabled(MainWebViewActivity.swipeToRefreshEnabled);
+