+ displayImagesSpinner.adapter = displayImagesArrayAdapter
+
+ // Open the spinners when the text view is tapped.
+ javaScriptTextView.setOnClickListener { javaScriptSpinner.performClick() }
+ cookiesTextView.setOnClickListener { cookiesSpinner.performClick() }
+ domStorageTextView.setOnClickListener { domStorageSpinner.performClick() }
+ formDataTextView.setOnClickListener { formDataSpinner.performClick() }
+ easyListTextView.setOnClickListener { easyListSpinner.performClick() }
+ easyPrivacyTextView.setOnClickListener { easyPrivacySpinner.performClick() }
+ fanboysAnnoyanceListTextView.setOnClickListener { fanboysAnnoyanceListSpinner.performClick() }
+ fanboysSocialBlockingListTextView.setOnClickListener { fanboysSocialBlockingListSpinner.performClick() }
+ ultraListTextView.setOnClickListener { ultraListSpinner.performClick() }
+ ultraPrivacyTextView.setOnClickListener { ultraPrivacySpinner.performClick() }
+ blockAllThirdPartyRequestsTextView.setOnClickListener { blockAllThirdPartyRequestsSpinner.performClick() }
+ userAgentTextView.setOnClickListener { userAgentSpinner.performClick() }
+ defaultFontSizeTextView.setOnClickListener { fontSizeSpinner.performClick() }
+ swipeToRefreshTextView.setOnClickListener { swipeToRefreshSpinner.performClick() }
+ webViewThemeTextView.setOnClickListener { webViewThemeSpinner.performClick() }
+ wideViewportTextView.setOnClickListener { wideViewportSpinner.performClick() }
+ displayImagesTextView.setOnClickListener { displayImagesSpinner.performClick() }
+
+ // Set the spinner selections. Items that aren't defined by an integer are handled individually below.
+ javaScriptSpinner.setSelection(javaScriptInt)
+ cookiesSpinner.setSelection(cookiesInt)
+ domStorageSpinner.setSelection(domStorageInt)
+ formDataSpinner.setSelection(formDataInt)
+ easyListSpinner.setSelection(easyListInt)
+ easyPrivacySpinner.setSelection(easyPrivacyInt)
+ fanboysAnnoyanceListSpinner.setSelection(fanboysAnnoyanceListInt)
+ fanboysSocialBlockingListSpinner.setSelection(fanboysSocialBlockingListInt)
+ ultraListSpinner.setSelection(ultraListInt)
+ ultraPrivacySpinner.setSelection(ultraPrivacyInt)
+ blockAllThirdPartyRequestsSpinner.setSelection(blockAllThirdPartyRequestsInt)
+ swipeToRefreshSpinner.setSelection(swipeToRefreshInt)
+ webViewThemeSpinner.setSelection(webViewThemeInt)
+ wideViewportSpinner.setSelection(wideViewportInt)
+ displayImagesSpinner.setSelection(displayImagesInt)
+
+ // Populate the text views. Items that aren't defined by an integer are handled individually below.
+ populateTextView(javaScriptDefault, javaScriptArrayAdapter, javaScriptTextView)
+ populateTextView(cookiesDefault, cookiesArrayAdapter, cookiesTextView)
+ populateTextView(domStorageDefault, domStorageArrayAdapter, domStorageTextView)
+ populateTextView(formDataDefault, formDataArrayAdapter, formDataTextView)
+ populateTextView(easyListDefault, easyListArrayAdapter, easyListTextView)
+ populateTextView(easyPrivacyDefault, easyPrivacyArrayAdapter, easyPrivacyTextView)
+ populateTextView(fanboysAnnoyanceListDefault, fanboysAnnoyanceListArrayAdapter, fanboysAnnoyanceListTextView)
+ populateTextView(fanboysSocialBlockingListDefault, fanboysSocialBlockingListArrayAdapter, fanboysSocialBlockingListTextView)
+ populateTextView(ultraListDefault, ultraListArrayAdapter, ultraListTextView)
+ populateTextView(ultraPrivacyDefault, ultraPrivacyArrayAdapter, ultraPrivacyTextView)
+ populateTextView(blockAllThirdPartyRequestsDefault, blockAllThirdPartyRequestsArrayAdapter, blockAllThirdPartyRequestsTextView)
+ populateTextView(swipeToRefreshDefault, swipeToRefreshArrayAdapter, swipeToRefreshTextView)
+ populateTextView(wideViewportDefault, wideViewportArrayAdapter, wideViewportTextView)
+ populateTextView(displayWebpageImagesDefault, displayImagesArrayAdapter, displayImagesTextView)
+
+ // Set the icon and text view settings. Non-standard items are handled individually below.
+ setIconAndTextViewSettings(cookiesInt, cookiesDefault, cookiesLinearLayout, cookiesImageView, cookiesTextView)
+ setIconAndTextViewSettings(domStorageInt, domStorageDefault, domStorageLinearLayout, domStorageImageView, domStorageTextView)
+ setIconAndTextViewSettings(formDataInt, formDataDefault, formDataLinearLayout, formDataImageView, formDataTextView)
+ setIconAndTextViewSettings(easyListInt, easyListDefault, easyListLinearLayout, easyListImageView, easyListTextView)
+ setIconAndTextViewSettings(easyPrivacyInt, easyPrivacyDefault, easyPrivacyLinearLayout, easyPrivacyImageView, easyListTextView)
+ setIconAndTextViewSettings(fanboysAnnoyanceListInt, fanboysAnnoyanceListDefault, fanboysAnnoyanceListLinearLayout, fanboysAnnoyanceListImageView, fanboysAnnoyanceListTextView)
+ setIconAndTextViewSettings(fanboysSocialBlockingListInt, fanboysSocialBlockingListDefault, fanboysSocialBlockingListLinearLayout, fanboysSocialBlockingListImageView, fanboysSocialBlockingListTextView)
+ setIconAndTextViewSettings(ultraListInt, ultraListDefault, ultraListLinearLayout, ultraListImageView, ultraListTextView)
+ setIconAndTextViewSettings(ultraPrivacyInt, ultraPrivacyDefault, ultraPrivacyLinearLayout, ultraPrivacyImageView, ultraPrivacyTextView)
+ setIconAndTextViewSettings(blockAllThirdPartyRequestsInt, blockAllThirdPartyRequestsDefault, blockAllThirdPartyRequestsLinearLayout, blockAllThirdPartyRequestsImageView,
+ blockAllThirdPartyRequestsTextView)
+ setIconAndTextViewSettings(swipeToRefreshInt, swipeToRefreshDefault, swipeToRefreshLinearLayout, swipeToRefreshImageView, swipeToRefreshTextView)
+ setIconAndTextViewSettings(wideViewportInt, wideViewportDefault, wideViewportLinearLayout, wideViewportImageView, wideViewportTextView)
+ setIconAndTextViewSettings(displayImagesInt, displayWebpageImagesDefault, displayImagesLinearLayout, displayImagesImageView, displayImagesTextView)