Extracted the search result adapter into an inner class

Also made it a static inner class, so dependencies are explicit.

Change-Id: I32e761365092e06b5ed5274718ba1c70a64e8247