From 305daf5a1063cc7224de15e96a2db23cbf21b9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 15 Jan 2014 23:51:24 +0100 Subject: [PATCH] DB.java: remove unused prefs, use pref names from Preferences.java --- src/org/fdroid/fdroid/DB.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/org/fdroid/fdroid/DB.java b/src/org/fdroid/fdroid/DB.java index 9a0da7712..2ba046f4b 100644 --- a/src/org/fdroid/fdroid/DB.java +++ b/src/org/fdroid/fdroid/DB.java @@ -334,7 +334,7 @@ public class DB { SharedPreferences prefs = PreferenceManager .getDefaultSharedPreferences(ctx); ignoreTouchscreen = prefs - .getBoolean("ignoreTouchscreen", false); + .getBoolean(Preferences.PREF_IGN_TOUCH, false); PackageManager pm = ctx.getPackageManager(); StringBuilder logMsg = new StringBuilder(); @@ -564,7 +564,7 @@ public class DB { db = h.getWritableDatabase(); SharedPreferences prefs = PreferenceManager .getDefaultSharedPreferences(mContext); - String sync_mode = prefs.getString("dbSyncMode", null); + String sync_mode = prefs.getString(Preferences.PREF_DB_SYNC, null); if ("off".equals(sync_mode)) setSynchronizationMode(SYNC_OFF); else if ("normal".equals(sync_mode)) @@ -784,8 +784,6 @@ public class DB { + (System.currentTimeMillis() - startTime) + " ms)"); List repos = getRepos(); - SharedPreferences prefs = PreferenceManager - .getDefaultSharedPreferences(mContext); cols = new String[] { "id", "version", "vercode", "sig", "srcname", "apkName", "minSdkVersion", "added", "features", "nativecode", "compatible", "repo" };