Fix: Don't always use /icons/ due to wrong SQL param order

This commit is contained in:
Daniel Martí 2014-04-29 20:06:56 +02:00
parent 55acd955b9
commit 88285b0a6b

View File

@ -808,9 +808,10 @@ public class AppProvider extends FDroidProvider {
Log.d("FDroid", "Updating icon paths for apps belonging to repos with version >= " + Repo.VERSION_DENSITY_SPECIFIC_ICONS);
String iconsDir = Utils.getIconsDir(getContext());
Log.d("FDroid", "Using icon dir '"+iconsDir+"'");
String repoVersion = Integer.toString(Repo.VERSION_DENSITY_SPECIFIC_ICONS);
String query = getIconUpdateQuery();
String[] params = { iconsDir, repoVersion };
String[] params = { repoVersion, iconsDir };
write().execSQL(query, params);
}