Если ваши api.getCategories()
и api.getProdutcs()
возвращают различные типы, вы можете подписаться на второе наблюдаемое после выполнения первого:
api.getCategories()
.subscribe(categories -> api.getProdutcs().subscribe(products -> //Here notify your lists ))
Или вы можете попробовать использовать оператор zip
:
Observable
.zip(api.getCategories(), api.getProdutcs(), (categories, products) -> //Here you need to define type of return value )
.subscribe(yourObject ->//Here notify your lists );