Use repo foreign key from app rather than apk table.

Since recently, app metadata now knows which repo it comes from.
As such, we no longer need to ask the apk table for this info.
This commit is contained in:
Peter Serwylo 2016-11-17 09:45:40 +11:00
parent 5be23b793e
commit 99ad9752c8

View File

@ -562,7 +562,7 @@ public class AppProvider extends FDroidProvider {
} }
private AppQuerySelection queryRepo(long repoId) { private AppQuerySelection queryRepo(long repoId) {
final String selection = getApkTableName() + "." + ApkTable.Cols.REPO_ID + " = ? "; final String selection = getTableName() + "." + Cols.REPO_ID + " = ? ";
final String[] args = {String.valueOf(repoId)}; final String[] args = {String.valueOf(repoId)};
return new AppQuerySelection(selection, args); return new AppQuerySelection(selection, args);
} }