Code example for PreferenceScreen

Methods: setEnabled

0
            } 
        }); 
        GeolocationPermissions.getInstance().getOrigins(new ValueCallback<Set<String> >() {
            public void onReceiveValue(Set<String> geolocationOrigins) {
                if ((geolocationOrigins != null) && !geolocationOrigins.isEmpty()) {
                    websiteSettings.setEnabled(true);
                } 
            } 
        }); 
    } 
 
    @Override 
    protected void onPause() { 
        super.onPause(); 
 
        // sync the shared preferences back to BrowserSettings 
        BrowserSettings.getInstance().syncSharedPreferences( 
                getPreferenceScreen().getSharedPreferences());
    } 
 
    public boolean onPreferenceChange(Preference pref, Object objValue) {