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:
		
							parent
							
								
									5be23b793e
								
							
						
					
					
						commit
						99ad9752c8
					
				@ -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);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user