// check to see if this gadget has at least one non-hidden user pref
// to determine if we should display the edit prefs button
boolean hasPrefsToEdit = false;
if (responseObject.has(USER_PREFS)) {
JSONObject userPrefs = responseObject.getJSONObject(USER_PREFS);
Iterator keys = userPrefs.keys();
while(keys.hasNext()) {
String userPrefName = (String) keys.next();
JSONObject userPref = userPrefs.getJSONObject(userPrefName);
if (!PrefDataTypes.HIDDEN.toString().equals(userPref.getString(DATA_TYPE))) {
hasPrefsToEdit = true;