Code example for Set

Methods: isEmpty

0
            } 
        }); 
        GeolocationPermissions.getInstance().getOrigins(new ValueCallback<Set<String> >() {
            @Override 
            public void onReceiveValue(Set<String> geolocationOrigins) {
                if ((geolocationOrigins != null) && !geolocationOrigins.isEmpty()) {
                    websiteSettings.setEnabled(true);
                } 
            } 
        }); 
    } 
 
    @Override 
    public boolean onPreferenceChange(Preference pref, Object objValue) {
        if (getActivity() == null) {
            // We aren't attached, so don't accept preferences changes from the 
            // invisible UI. 
            Log.w("PageContentPreferencesFragment", "onPreferenceChange called from detached fragment!");
            return false; 
        }