AppProvider: fix IconUpdateQuery
The query was trying to figure out some thing about suggestedVercode which shouldn't at all be necessary for setting the iconUrl. The index already contains the icon pointing to the suggested version by that repository, so we just take that regardless.
This commit is contained in:
parent
43e5ab7eb2
commit
4595517aba
@ -1233,12 +1233,7 @@ public class AppProvider extends FDroidProvider {
|
|||||||
app + "." + Cols.ICON +
|
app + "." + Cols.ICON +
|
||||||
") " +
|
") " +
|
||||||
" FROM " +
|
" FROM " +
|
||||||
apk +
|
repo + " WHERE " + repo + "." + RepoTable.Cols._ID + " = " + app + "." + Cols.REPO_ID;
|
||||||
" JOIN " + repo + " ON (" + repo + "." + RepoTable.Cols._ID + " = " + apk + "." + ApkTable.Cols.REPO_ID + ") " +
|
|
||||||
" WHERE " +
|
|
||||||
app + "." + Cols.ROW_ID + " = " + apk + "." + ApkTable.Cols.APP_ID + " AND " +
|
|
||||||
apk + "." + ApkTable.Cols.VERSION_CODE + " = " + app + "." + Cols.SUGGESTED_VERSION_CODE;
|
|
||||||
|
|
||||||
return "UPDATE " + app + " SET "
|
return "UPDATE " + app + " SET "
|
||||||
+ Cols.ICON_URL + " = ( " + iconUrlQuery + " )";
|
+ Cols.ICON_URL + " = ( " + iconUrlQuery + " )";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user