Code example for Map

Methods: isEmpty

0
                PreferenceKeys.PREF_WEBSITE_SETTINGS); 
        websiteSettings.setEnabled(false);
        WebStorage.getInstance().getOrigins(new ValueCallback<Map>() {
            @Override 
            public void onReceiveValue(Map webStorageOrigins) {
                if ((webStorageOrigins != null) && !webStorageOrigins.isEmpty()) {
                    websiteSettings.setEnabled(true);
                } 
            } 
        }); 
        GeolocationPermissions.getInstance().getOrigins(new ValueCallback<Set<String> >() {
            @Override 
            public void onReceiveValue(Set<String> geolocationOrigins) {
                if ((geolocationOrigins != null) && !geolocationOrigins.isEmpty()) {
                    websiteSettings.setEnabled(true);
                } 
            } 
        }); 
    } 
 
    @Override