From 847b1f826427618caa2c5b2d37467e14be4e6c33 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Fri, 22 Mar 2013 16:51:05 +0100 Subject: [PATCH] Fix removal of settings. --- .../org/transdroid/core/app/settings/ApplicationSettings.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/org/transdroid/core/app/settings/ApplicationSettings.java b/core/src/org/transdroid/core/app/settings/ApplicationSettings.java index eae9b0be..f8ab4c15 100644 --- a/core/src/org/transdroid/core/app/settings/ApplicationSettings.java +++ b/core/src/org/transdroid/core/app/settings/ApplicationSettings.java @@ -99,7 +99,7 @@ public class ApplicationSettings { // Copy all settings higher than the supplied order number to the previous spot Editor edit = prefs.edit(); - int max = getMaxWebsearch(); + int max = getMaxServer(); for (int i = order; i < max; i++) { edit.putString("server_name_" + i, prefs.getString("server_name_" + (i + 1), null)); edit.putString("server_type_" + i, prefs.getString("server_type_" + (i + 1), null)); @@ -305,7 +305,7 @@ public class ApplicationSettings { // Copy all settings higher than the supplied order number to the previous spot Editor edit = prefs.edit(); - int max = getMaxWebsearch(); + int max = getMaxRssfeed(); for (int i = order; i < max; i++) { edit.putString("rssfeed_name_" + i, prefs.getString("rssfeed_name_" + (i + 1), null)); edit.putString("rssfeed_url_" + i, prefs.getString("rssfeed_url_" + (i + 1), null));