Gallery: improve timeline loading performance

MediaSet's getTotalMediaItemCount() method involves database queries
which is slow. The call is not needed in time clustering as the items
will be enumerated right after that.

Change-Id: I8eaa68237c923486109935180247188da94f397b
CRs-Fixed: 984190
1 file changed