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.
Šī revīzija ir iekļauta:
Peter Serwylo 2016-11-17 09:45:40 +11:00
vecāks 5be23b793e
revīzija 99ad9752c8

Parādīt failu

@ -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);
} }